diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-06-07 04:44:06 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-06-07 04:45:35 (GMT) |
commit | 0619c12bfee40826034dbc31f9d398182a3aa49f (patch) | |
tree | 8a57c54a654b9fa48852ba2ec11cf1f275cd2814 /tests/auto/declarative/qdeclarativestates/data | |
parent | ed5f6c87e783960f880d56f58149985366d34615 (diff) | |
download | Qt-0619c12bfee40826034dbc31f9d398182a3aa49f.zip Qt-0619c12bfee40826034dbc31f9d398182a3aa49f.tar.gz Qt-0619c12bfee40826034dbc31f9d398182a3aa49f.tar.bz2 |
Ensure state operations assigned to the default state are triggered
when returning to that state.
Task-number: QTBUG-11228
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/returnToBase.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/returnToBase.qml b/tests/auto/declarative/qdeclarativestates/data/returnToBase.qml new file mode 100644 index 0000000..e342331 --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/returnToBase.qml @@ -0,0 +1,21 @@ +import Qt 4.7 + +Rectangle { + id: theRect + property bool triggerState: false + property string stateString: "" + states: [ State { + when: triggerState + PropertyChanges { + target: theRect + stateString: "inState" + } + }, + State { + name: "" + PropertyChanges { + target: theRect + stateString: "originalState" + } + }] +} |