aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistreference/data/propertyList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmllistreference/data/propertyList.qml')
-rw-r--r--tests/auto/qml/qqmllistreference/data/propertyList.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllistreference/data/propertyList.qml b/tests/auto/qml/qqmllistreference/data/propertyList.qml
new file mode 100644
index 0000000000..c791c6dcf0
--- /dev/null
+++ b/tests/auto/qml/qqmllistreference/data/propertyList.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.7
+
+Item {
+ id:root
+
+ Component.onCompleted : {
+ var st1 = Qt.createQmlObject( "import QtQuick 2.7; State{ name: 'MyState1' }", root, "dynamicState1" );
+ var st2 = Qt.createQmlObject( "import QtQuick 2.7; State{ name: 'MyState2' }", root, "dynamicState2" );
+ root.states.push( st1, st2 );
+ root.state = "MyState2";
+ }
+}