aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-06-24 09:56:01 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-07-05 23:29:37 +0200
commit8056df328414a30252fbcef881569538e740c7de (patch)
tree4dae37258096b9e4d81666120e100e58f3201fa9 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parentb4663aa5b605bf869ac68918b9f0636d690b3f36 (diff)
QML: Re-add the Qt namespace enums to the Qt object
They were replaced with an extension to the Qt singleton in Qt6. However, the singleton is only available when QtQml is imported. We can easily provide the enums using the metaobject of the Qt namespace. Pick-to: 6.4 Change-Id: I5f58d30c749c0cb9e531df180a5cbe75c92e1aa6 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index b5bef39e88..4acc200249 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -1652,7 +1652,7 @@ void tst_QmlCppCodegen::intEnumCompare()
QVERIFY2(c.isReady(), qPrintable(c.errorString()));
QScopedPointer<QObject> o(c.create());
QVERIFY(o);
- QCOMPARE(o->property("c").toBool(), false);
+ QCOMPARE(o->property("c").toBool(), true);
QCOMPARE(o->property("d").toBool(), false);
}
}