aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlmetaobject
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2020-11-03 18:48:13 +0100
committerDavid Skoland <david.skoland@qt.io>2020-11-04 11:12:25 +0100
commit89ee1a33cb373709af9de565902e97c0299d3bee (patch)
tree1f37375d0360cc9032e4825293537b16ccf1457a /tests/auto/qml/qqmlmetaobject
parent8ae632bbbc12f9751c8a55692687aff73ca01d77 (diff)
Update MetaType things in tests
Also fix some minute errors. Change-Id: I1815224a6efdd7e619dfe5a5911d8b1166a3b3c8 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlmetaobject')
-rw-r--r--tests/auto/qml/qqmlmetaobject/tst_qqmlmetaobject.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/qml/qqmlmetaobject/tst_qqmlmetaobject.cpp b/tests/auto/qml/qqmlmetaobject/tst_qqmlmetaobject.cpp
index 7b02415328..41537192d3 100644
--- a/tests/auto/qml/qqmlmetaobject/tst_qqmlmetaobject.cpp
+++ b/tests/auto/qml/qqmlmetaobject/tst_qqmlmetaobject.cpp
@@ -192,11 +192,7 @@ void tst_QQmlMetaObject::property()
QCOMPARE(prop.name(), "test");
QCOMPARE(QByteArray(prop.typeName()), cppTypeName);
- if (prop.userType() < QMetaType::User)
- QCOMPARE(prop.type(), QVariant::Type(cppType));
- else
- QCOMPARE(prop.type(), QVariant::UserType);
- QCOMPARE(prop.userType(), cppType);
+ QCOMPARE(prop.metaType().id(), cppType);
QVERIFY(!prop.isConstant());
QVERIFY(!prop.isDesignable());