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