diff options
Diffstat (limited to 'examples/quick/animation/states/transitions.qml')
-rw-r--r-- | examples/quick/animation/states/transitions.qml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/examples/quick/animation/states/transitions.qml b/examples/quick/animation/states/transitions.qml index 1cfdfec18a..a4e0f218c7 100644 --- a/examples/quick/animation/states/transitions.qml +++ b/examples/quick/animation/states/transitions.qml @@ -105,13 +105,23 @@ Rectangle { // In state 'middleRight', move the image to middleRightRect State { name: "middleRight" - PropertyChanges { target: userIcon; x: middleRightRect.x; y: middleRightRect.y } + PropertyChanges { + userIcon { + x: middleRightRect.x + y: middleRightRect.y + } + } }, // In state 'bottomLeft', move the image to bottomLeftRect State { name: "bottomLeft" - PropertyChanges { target: userIcon; x: bottomLeftRect.x; y: bottomLeftRect.y } + PropertyChanges { + userIcon { + x: bottomLeftRect.x + y: bottomLeftRect.y + } + } } ] |