Created unit test to QKeySequence convertion to QVariant.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
Renato Filho 2011-04-25 15:56:01 -03:00 • committed by Hugo Parente Lima
commit 50e6f9690b
3 changed files with 20 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#include <QObject>
#include <QApplication>
#include <QMetaType>
#include <QVariant>
#ifdef pysidetest_EXPORTS
#define PYSIDE_EXPORTS 1
#endif
@ -14,6 +15,7 @@ class PYSIDE_API TestObject : public QObject
Q_OBJECT
public:
static void createApp() { int argc=0; new QApplication(argc, 0); };
static int checkType(const QVariant& var) { return (int)var.type(); }
TestObject(int idValue, QObject* parent = 0) : QObject(parent), m_idValue(idValue) {}
int idValue() const { return m_idValue; }