aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml')
-rw-r--r--tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml b/tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml
new file mode 100644
index 0000000000..35eacff07b
--- /dev/null
+++ b/tests/auto/qtquick2/qdeclarativestates/data/unnamedWhen.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+Rectangle {
+ id: theRect
+ property bool triggerState: false
+ property string stateString: ""
+ states: State {
+ when: triggerState
+ PropertyChanges {
+ target: theRect
+ stateString: "inState"
+ }
+ }
+}