diff options
author | David Skoland <david.skoland@qt.io> | 2020-11-02 11:09:38 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2020-11-02 14:56:00 +0100 |
commit | e47edfe7a75eb9240604e66fc6a400ebef83b6a0 (patch) | |
tree | dfb655d9c2872bb2dbe3575a3a1d74aa1a8f47c8 /tests/auto/qml/qqmlpropertymap | |
parent | 50ba4ffdf48461d38f4dd2137a0fbbc916c9eb0a (diff) |
Update tests to use new metaType system
Change from the QVariant enum to the QMetaType enum and prefer typeId
over userType where possible
Change-Id: Ic89c55978d46cc23d23b8e9c82c475c0c220fae3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlpropertymap')
-rw-r--r-- | tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp b/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp index 237b65679e..39af59d0b0 100644 --- a/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp +++ b/tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp @@ -468,7 +468,7 @@ void tst_QQmlPropertyMap::QTBUG_35906() QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QVariant value = obj->property("testValue"); - QCOMPARE(value.type(), QVariant::Int); + QCOMPARE(value.typeId(), QMetaType::Int); QCOMPARE(value.toInt(), 42); } |