summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2010-09-14 14:47:07 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2010-09-14 14:47:07 (GMT)
commita8085e53f15f88aa108d2e7e6473094105d0fdcb (patch)
tree9636cddd728b2c7f433e8a02bdfd335e71c98957 /tests/auto/declarative/qdeclarativestates/data
parent6454f4db1697af1d36ad4c0ea83ccd0bb490fd39 (diff)
downloadQt-a8085e53f15f88aa108d2e7e6473094105d0fdcb.zip
Qt-a8085e53f15f88aa108d2e7e6473094105d0fdcb.tar.gz
Qt-a8085e53f15f88aa108d2e7e6473094105d0fdcb.tar.bz2
Unit tests for Bauhaus enablers
See 6454f4db1697af1d36ad4c0ea83ccd0bb490fd39
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r--tests/auto/declarative/qdeclarativestates/data/editProperties.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/editProperties.qml b/tests/auto/declarative/qdeclarativestates/data/editProperties.qml
new file mode 100644
index 0000000..4cb1ddd
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativestates/data/editProperties.qml
@@ -0,0 +1,34 @@
+import Qt 4.7
+Rectangle {
+ id: myRectangle
+
+ property color sourceColor: "blue"
+ width: 400; height: 400
+ color: "red"
+
+ Rectangle {
+ id: rect2
+ objectName: "rect2"
+ width: parent.width + 2
+ height: 200
+ color: "yellow"
+ }
+
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges {
+ target: rect2
+ width:50
+ height: 40
+ }
+ },
+ State {
+ name: "green"
+ PropertyChanges {
+ target: rect2
+ width: myRectangle.width / 2
+ height: myRectangle.width / 4
+ }
+ }]
+}