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:
parent
5d3285e41d
commit
50e6f9690b
3 changed files with 20 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue