testit.h
00001 #include <qobject.h> 00002 00003 class Foo: public QObject 00004 { 00005 Q_OBJECT; 00006 public: 00007 Foo(); 00008 int value() const { return val; } 00009 public slots: 00010 void setValue(int); 00011 signals: 00012 void valueChanged(int); 00013 private: 00014 int val; 00015 };