Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / editProperties.qml
1 import QtQuick 1.0
2 Rectangle {
3     id: myRectangle
4
5     property color sourceColor: "blue"
6     width: 400; height: 400
7     color: "red"
8
9     Rectangle {
10       id: rect2
11       objectName: "rect2"
12       width: parent.width + 2
13       height: 200
14       color: "yellow"
15     }
16
17     states: [
18         State {
19             name: "blue"
20             PropertyChanges {
21                 target: rect2
22                 width:50
23                 height: 40
24             }
25         },
26         State {
27             name: "green"
28             PropertyChanges {
29                 target: rect2
30                 width: myRectangle.width / 2
31                 height: myRectangle.width / 4
32             }
33         }]
34 }