Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / signalOverrideCrash2.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     id: myRect
5     width: 400
6     height: 400
7
8     states: [
9         State {
10             name: "state1"
11             PropertyChanges {
12                 target: myRect
13                 onHeightChanged: console.log("Hello World")
14                 color: "green"
15             }
16         },
17         State {
18             name: "state2"; extend: "state1"
19             PropertyChanges {
20                 target: myRect
21                 color: "red"
22         }
23     }]
24 }