Added test for signal with typedef
Reviewer: Renato Filho <renato.filho@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
44e1d257ec
commit
5e08e864e7
5 changed files with 51 additions and 1 deletions
|
|
@ -10,6 +10,17 @@
|
|||
#endif
|
||||
#include "pysidemacros.h"
|
||||
|
||||
class IntValue
|
||||
{
|
||||
public:
|
||||
|
||||
IntValue(int val): value(val){};
|
||||
IntValue() : value(0) {};
|
||||
int value;
|
||||
};
|
||||
|
||||
typedef IntValue TypedefValue;
|
||||
|
||||
class PYSIDE_API TestObject : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
@ -28,12 +39,15 @@ public:
|
|||
void emitSignalWithDefaultValue_void();
|
||||
void emitSignalWithDefaultValue_bool();
|
||||
|
||||
void emitSignalWithTypedefValue(int value);
|
||||
|
||||
signals:
|
||||
void idValue(int newValue);
|
||||
void justASignal();
|
||||
void staticMethodDouble();
|
||||
void childrenChanged(const QList<QObject*>&);
|
||||
void signalWithDefaultValue(bool value = false);
|
||||
void signalWithTypedefValue(TypedefValue value);
|
||||
|
||||
private:
|
||||
int m_idValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue