summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/animation.qdoc
diff options
context:
space:
mode:
authorIan Walters <ian.walters@nokia.com>2009-05-07 05:14:04 (GMT)
committerIan Walters <ian.walters@nokia.com>2009-05-07 05:14:04 (GMT)
commit45f531b9863fb64e6d4df2c77af01f14019f217e (patch)
tree8d65d6c7b64bd0aec300a3f396b175fbb70ff747 /doc/src/declarative/animation.qdoc
parent73667e2618ecbd00f6496006fcfc3c56ac99be6d (diff)
parente82217bf8e4ebaba20eb255bd52a9f261467b9d8 (diff)
downloadQt-45f531b9863fb64e6d4df2c77af01f14019f217e.zip
Qt-45f531b9863fb64e6d4df2c77af01f14019f217e.tar.gz
Qt-45f531b9863fb64e6d4df2c77af01f14019f217e.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/declarative/animation.qdoc')
-rw-r--r--doc/src/declarative/animation.qdoc17
1 files changed, 6 insertions, 11 deletions
diff --git a/doc/src/declarative/animation.qdoc b/doc/src/declarative/animation.qdoc
index f7e03ee..f17f5c9 100644
--- a/doc/src/declarative/animation.qdoc
+++ b/doc/src/declarative/animation.qdoc
@@ -25,7 +25,7 @@ Other Features:
\o Animation synchronization
\endlist
-The simplest form of animation is using \c NumericAnimation
+The simplest form of animation is using \l NumericAnimation
The following example creates a bouncing effect:
\code
@@ -34,20 +34,15 @@ Rect {
width: 120; height: 200; color: "white"
Image {
id: img
- source: "pics/qtlogo.png"
+ source: "qt-logo.png"
x: 60-img.width/2
- y: 200-img.height
+ y: 0
y: SequentialAnimation {
running: true
repeat: true
- NumericAnimation {
- to: 200-img.height
- easing: "easeOutBounce(amplitude:100)"
- duration: 2000
- }
- PauseAnimation {
- duration: 1000
- }
+ NumericAnimation { to: 200-img.height; easing: "easeOutBounce"; duration: 2000 }
+ PauseAnimation { duration: 1000 }
+ NumericAnimation { to: 0; easing: "easeOutQuad"; duration: 1000 }
}
}
}