ctkTestWrappedSlot.h 423 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __ctkTestWrappedSlot_h
  2. #define __ctkTestWrappedSlot_h
  3. // Qt includes
  4. #include <QObject>
  5. class ctkTestWrappedSlot : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. ctkTestWrappedSlot(QObject * newParent = 0) : QObject(newParent)
  10. {
  11. this->Value = 0;
  12. }
  13. public slots:
  14. int value() const { return this->Value; }
  15. void setValue(int newValue){ this->Value = newValue; }
  16. private:
  17. int Value;
  18. };
  19. #endif