diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-06-26 01:27:12 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-06-26 01:27:12 (GMT) |
commit | bce256a8513292ff71e9cb690893cea974b642c9 (patch) | |
tree | 0ff3ac17fedef09081ff0aef8f3e24a670b5e61b /examples/declarative/states/states.qml | |
parent | 36861d240d1105ef4a1cbfacf34c3e386e2fe29e (diff) | |
parent | 5b52c348243e6459cc7faa4ee76a23c7fadcd299 (diff) | |
download | Qt-bce256a8513292ff71e9cb690893cea974b642c9.zip Qt-bce256a8513292ff71e9cb690893cea974b642c9.tar.gz Qt-bce256a8513292ff71e9cb690893cea974b642c9.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative/states/states.qml')
-rw-r--r-- | examples/declarative/states/states.qml | 12 |
1 files changed, 9 insertions, 3 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 + } } ] } |