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:
Lauro Neto 2011-08-09 15:28:06 -03:00 • committed by Hugo Parente Lima
commit 5e08e864e7
5 changed files with 51 additions and 1 deletions

View file

@ -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;