Extract all QtQuick 1 elements into a separate library/plugin.
[profile/ivi/qtdeclarative.git] / tests / auto / qtquick1 / qdeclarativestates / data / basicBinding4.qml
1 import QtQuick 1.0
2 Rectangle {
3     id: myRectangle
4
5     property color sourceColor: "blue"
6     width: 100; height: 100
7     color: "red"
8     states: [
9         State {
10             name: "blue"
11             PropertyChanges { target: myRectangle; color: sourceColor }
12         },
13         State {
14             name: "green"
15             PropertyChanges { target: myRectangle; color: "green" }
16         }]
17 }