1#include <QtCore/QObject>
2
3class Counter : public QObject
4{
5 Q_OBJECT
6 int m_value;
7public:
8 int value() const { return m_value; }
9public slots:
10 void setValue(int value);
11signals:
12 void valueChanged(int newValue);
13};
14