summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-06-23 08:13:58 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-06-23 08:13:58 (GMT)
commit2729df73c54eebcd4b981eaf1487d604e467c4d5 (patch)
treef728d6b3d2ca6f40ade908b57f7eff0e28f273f0
parent6d7120dc2081e10c46ffe8467b047affe81ed747 (diff)
downloadQt-2729df73c54eebcd4b981eaf1487d604e467c4d5.zip
Qt-2729df73c54eebcd4b981eaf1487d604e467c4d5.tar.gz
Qt-2729df73c54eebcd4b981eaf1487d604e467c4d5.tar.bz2
Changed SetProperty to SetProperties to anticipate deprecation of
SetProperty.
-rw-r--r--examples/declarative/states/states.qml12
-rw-r--r--examples/declarative/states/transitions.qml12
2 files changed, 18 insertions, 6 deletions
diff --git a/examples/declarative/states/states.qml b/examples/declarative/states/states.qml
index bcde20c..c7ee172 100644
--- a/examples/declarative/states/states.qml
+++ b/examples/declarative/states/states.qml
@@ -26,15 +26,21 @@ 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
+ 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
+ }
}
]
}
diff --git a/examples/declarative/states/transitions.qml b/examples/declarative/states/transitions.qml
index 4c1dceb..736cc87 100644
--- a/examples/declarative/states/transitions.qml
+++ b/examples/declarative/states/transitions.qml
@@ -26,15 +26,21 @@ 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
+ 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
+ }
}
]