diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-07-20 02:49:17 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-07-20 02:49:17 (GMT) |
commit | 84f4daa03f99bc7977641d6f1ac29e3423fb4a14 (patch) | |
tree | de59ffd846e7bd42b2e77dcd7742f71a6ca37b05 /doc/src/snippets/declarative/springanimation.qml | |
parent | 7fb140b63f03b96064ded4ec6f2ec7c93e87b825 (diff) | |
parent | 6c3cf7e2c5868bc77ffa66059889eda3132531b3 (diff) | |
download | Qt-84f4daa03f99bc7977641d6f1ac29e3423fb4a14.zip Qt-84f4daa03f99bc7977641d6f1ac29e3423fb4a14.tar.gz Qt-84f4daa03f99bc7977641d6f1ac29e3423fb4a14.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc/src/snippets/declarative/springanimation.qml')
-rw-r--r-- | doc/src/snippets/declarative/springanimation.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/springanimation.qml b/doc/src/snippets/declarative/springanimation.qml index b73a9d2..8e810e1 100644 --- a/doc/src/snippets/declarative/springanimation.qml +++ b/doc/src/snippets/declarative/springanimation.qml @@ -41,7 +41,7 @@ //![0] import Qt 4.7 -Rectangle { +Item { width: 300; height: 300 Rectangle { @@ -56,8 +56,8 @@ Rectangle { MouseArea { anchors.fill: parent onClicked: { - rect.x = mouse.x - rect.y = mouse.y + rect.x = mouse.x - rect.width/2 + rect.y = mouse.y - rect.height/2 } } } |