aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/enumLookup.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-07-04 17:00:15 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-07-07 19:33:27 +0200
commit3f3e961a5afe2e62f436f946c521ea4afab76dde (patch)
tree5025c3528580da614d1298d5bf594356d345a860 /tests/auto/qml/qmlcppcodegen/data/enumLookup.qml
parent0e48d9d9387aeb39c8289f61f75d9c6fcd6c753f (diff)
QmlCompiler: Allow wrapping enums into int
This is what we do internally in the QML engine. Pick-to: 6.4 Fixes: QTBUG-104683 Change-Id: I2f8712cb2cdc56b6c483500627fd8a218edbad81 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/enumLookup.qml')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/enumLookup.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/enumLookup.qml b/tests/auto/qml/qmlcppcodegen/data/enumLookup.qml
new file mode 100644
index 0000000000..693f3e275f
--- /dev/null
+++ b/tests/auto/qml/qmlcppcodegen/data/enumLookup.qml
@@ -0,0 +1,11 @@
+pragma Strict
+import QML
+
+QtObject {
+ property Component c: Component {
+ id: cc
+ QtObject {}
+ }
+
+ property bool ready: cc.status == Component.Ready
+}