Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / returnToBase.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     id: theRect
5     property bool triggerState: false
6     property string stateString: ""
7     states: [ State {
8         when: triggerState
9         PropertyChanges {
10             target: theRect
11             stateString: "inState"
12         }
13     },
14     State {
15         name: ""
16         PropertyChanges {
17             target: theRect
18             stateString: "originalState"
19         }
20     }]
21 }