aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/foreignSingleton.qml
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-01-19 17:54:45 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2021-01-20 12:07:34 +0100
commitbf573ad295fbc1eee9379bfaafcded293c4b81f4 (patch)
tree330a69b72e7de269753c4563c8d59bac5a533d3d /tests/auto/qml/qqmllanguage/data/foreignSingleton.qml
parente9997bc96911923355af2e1dd081cc039a2b2b8f (diff)
QML_SINGLETON: Handle local create() functions with foreign types
Previously only the foreign type was searched for a create method. Now the wrapping type can also contain it. Change-Id: I05fb9e0c0a54c14530eb9adcae5a44df5c208be3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/foreignSingleton.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/foreignSingleton.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/foreignSingleton.qml b/tests/auto/qml/qqmllanguage/data/foreignSingleton.qml
new file mode 100644
index 0000000000..1649df6a25
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/foreignSingleton.qml
@@ -0,0 +1,6 @@
+import QtQml 2.0
+import StaticTest 1.0
+
+QtObject {
+ property int number: ForeignSingleton.number
+}