diff options
Diffstat (limited to 'sources/pyside2/tests/pysidetest/testobject.h')
-rw-r--r-- | sources/pyside2/tests/pysidetest/testobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/pysidetest/testobject.h b/sources/pyside2/tests/pysidetest/testobject.h index 41a97a0db..c31a2ab73 100644 --- a/sources/pyside2/tests/pysidetest/testobject.h +++ b/sources/pyside2/tests/pysidetest/testobject.h @@ -55,7 +55,7 @@ class PYSIDETEST_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(); } + static int checkType(const QVariant& var) { return var.metaType().id(); } TestObject(int idValue, QObject* parent = 0) : QObject(parent), m_idValue(idValue) {} int idValue() const { return m_idValue; } |