diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-12-08 13:55:24 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-12-08 20:11:27 +0100 |
| commit | c89c14423bb5b6425764291f4900803690419899 (patch) | |
| tree | 810073b00e5b80281c254881c278cccbd702bde7 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | 695bbd6f59538af797e490a800ab38ef2617c015 (diff) | |
QmlCompiler: Preferably wrap types in QJSPrimitiveValue for SetLookup
If we store one primitive type inside another, we cannot get its content
pointer.
Change-Id: I7088685fdd2633085de732aab87b4b5f93300b90
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index 51641a2295..259bac97e8 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -3870,6 +3870,7 @@ void tst_QmlCppCodegen::setLookupConversion() QVERIFY(o->objectName().isEmpty()); QMetaObject::invokeMethod(o.data(), "t"); QCOMPARE(o->objectName(), u"a"_s); + QCOMPARE(o->property("value").toInt(), 9); } void tst_QmlCppCodegen::shadowedAsCasts() |
