diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml b/tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml new file mode 100644 index 0000000..1f52d0e --- /dev/null +++ b/tests/auto/declarative/qdeclarativestates/data/basicBinding4.qml @@ -0,0 +1,17 @@ +import Qt 4.6 +Rectangle { + id: myRectangle + + property color sourceColor: "blue" + width: 100; height: 100 + color: "red" + states: [ + State { + name: "blue" + PropertyChanges { target: myRectangle; color: sourceColor } + }, + State { + name: "green" + PropertyChanges { target: myRectangle; color: "green" } + }] +} |