summaryrefslogtreecommitdiffstats
path: root/examples/declarative/states/states.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/states/states.qml')
-rw-r--r--examples/declarative/states/states.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/states/states.qml b/examples/declarative/states/states.qml
index bcde20c..6bd9813 100644
--- a/examples/declarative/states/states.qml
+++ b/examples/declarative/states/states.qml
@@ -26,15 +26,15 @@ Rect {
// In state 'Position1', change the 'myrect' item x, y to 150, 50.
State {
name: "Position1"
- SetProperty { target: myrect; property: "x"; value: 150 }
- SetProperty { target: myrect; property: "y"; value: 50 }
+ SetProperties { target: myrect; x: 150 }
+ SetProperties { target: myrect; y: 50 }
},
// In state 'Position2', change y to 100. We do not specify 'x' here -
// it will therefore be restored to its default value of 0, if it
// had been changed.
State {
name: "Position2"
- SetProperty { target: myrect; property: "y"; value: 200 }
+ SetProperties { target: myrect; y: 200 }
}
]
}