Advertisement
Guest User

Untitled

a guest
May 5th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #ifndef COUNTER_H
  2. #define COUNTER_H
  3. #include <QQuickItem>
  4.  
  5. class Counter : public QObject
  6. {
  7. Q_OBJECT
  8. Q_PROPERTY(int count MEMBER m_count RESET reset NOTIFY countChanged)
  9.  
  10. private:
  11. int m_count;
  12.  
  13.  
  14. public:
  15. Counter(QObject *parent = 0);
  16.  
  17. signals:
  18. void countChanged();
  19.  
  20.  
  21. public slots:
  22.  
  23. void plus();
  24. void reset();
  25.  
  26. };
  27.  
  28. #endif // COUNTER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement