diff options
Diffstat (limited to 'tests/pysidetest/testobject.h')
-rw-r--r-- | tests/pysidetest/testobject.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/pysidetest/testobject.h b/tests/pysidetest/testobject.h new file mode 100644 index 000000000..ef0266199 --- /dev/null +++ b/tests/pysidetest/testobject.h @@ -0,0 +1,28 @@ +#ifndef TESTOBJECT_H +#define TESTOBJECT_H + +#include <QObject> +#include "pysidemacros.h" + +class PYSIDE_API TestObject : public QObject +{ + Q_OBJECT +public: + TestObject(int idValue, QObject* parent = 0) : QObject(parent), m_idValue(idValue) {} + int idValue() const { return m_idValue; } + static int staticMethodDouble(int value) { return value * 2; } + + void emitIdValueSignal(); + void emitStaticMethodDoubleSignal(); + +signals: + void idValue(int newValue); + void justASignal(); + void staticMethodDouble(); + +private: + int m_idValue; +}; + +#endif // TESTOBJECT_H + |