diff options
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/singletonTest11.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/singletonTest11.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/singletonTest11.qml b/tests/auto/qml/qqmllanguage/data/singletonTest11.qml new file mode 100644 index 0000000000..4248731314 --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/singletonTest11.qml @@ -0,0 +1,17 @@ +import QtQuick 2.0 +import "singleton" + +Item { + id: test + + property int value1: SingletonType.testProp1; + property string value2: "Test value: " + SingletonType.testProp3; + + signal customSignal(SingletonType type) + + onCustomSignal: { + type.testProp1 = 99 + } + + Component.onCompleted: test.customSignal(SingletonType) +} |