Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / illegalTempState.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     id: card
5     width: 100; height: 100
6
7     states: [
8         State {
9             name: "placed"
10             PropertyChanges { target: card; state: "idle" }
11         },
12         State {
13             name: "idle"
14         }
15     ]
16
17     MouseArea {
18         anchors.fill: parent
19         onClicked: card.state = "placed"
20     }
21 }