diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-08 01:13:33 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-08 01:15:13 (GMT) |
commit | 80cd83d3b09b2271d183a51d2e6453924c535dce (patch) | |
tree | bbb354da77507be6a73d03073aa37393b30013f4 /tests/auto/declarative/qdeclarativestates/data | |
parent | 979ad950e257c0c90463ab6c2db7fea4aece3331 (diff) | |
download | Qt-80cd83d3b09b2271d183a51d2e6453924c535dce.zip Qt-80cd83d3b09b2271d183a51d2e6453924c535dce.tar.gz Qt-80cd83d3b09b2271d183a51d2e6453924c535dce.tar.bz2 |
Document behavior of conflicting when clauses.
Task-number: QTBUG-9371
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml b/tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml new file mode 100644 index 0000000..7369c63 --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/whenOrdering.qml @@ -0,0 +1,11 @@ +import Qt 4.6 + +Rectangle { + property bool condition1: false + property bool condition2: false + + states: [ + State { name: "state1"; when: condition1 }, + State { name: "state2"; when: condition2 } + ] +} |