diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-08-05 06:01:56 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-08-05 06:07:39 (GMT) |
commit | a9aaaf30b6c542b5c9e3c1e1681088ab26a530c0 (patch) | |
tree | bac924df632b3cf4ecc1f572f7ec795bf15ac281 /doc/src/snippets/declarative/transition.qml | |
parent | 2ee9d1cd0b7ee5b8973a286f56943a61350cdc67 (diff) | |
download | Qt-a9aaaf30b6c542b5c9e3c1e1681088ab26a530c0.zip Qt-a9aaaf30b6c542b5c9e3c1e1681088ab26a530c0.tar.gz Qt-a9aaaf30b6c542b5c9e3c1e1681088ab26a530c0.tar.bz2 |
Improve docs on QML Animation page and associated elements
Task-number: QTBUG-12666
Diffstat (limited to 'doc/src/snippets/declarative/transition.qml')
-rw-r--r-- | doc/src/snippets/declarative/transition.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/transition.qml b/doc/src/snippets/declarative/transition.qml index b884750..098d509 100644 --- a/doc/src/snippets/declarative/transition.qml +++ b/doc/src/snippets/declarative/transition.qml @@ -46,13 +46,18 @@ Rectangle { width: 100; height: 100 color: "red" + MouseArea { + id: mouseArea + anchors.fill: parent + } + states: State { - name: "moved" + name: "moved"; when: mouseArea.pressed PropertyChanges { target: rect; x: 50; y: 50 } } transitions: Transition { - PropertyAnimation { properties: "x,y"; easing.type: Easing.InOutQuad } + NumberAnimation { properties: "x,y"; easing.type: Easing.InOutQuad } } } //![0] |