aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/singletonTest6.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/singletonTest6.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/singletonTest6.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/singletonTest6.qml b/tests/auto/qml/qqmllanguage/data/singletonTest6.qml
new file mode 100644
index 0000000000..0c5c65cc7a
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/singletonTest6.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+import org.qtproject.SingletonTest 1.0
+
+Item {
+ property int value1: SingletonType.testProp1;
+ property string value2: "Test value: " + SingletonType.testProp3;
+ property variant singletonInstance: SingletonType;
+
+ NonSingletonType { id: nonSingleton }
+
+ property int value3: nonSingleton.testProp1;
+ property string value4: "Test value: " + nonSingleton.testProp3;
+}
+