diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-08-24 03:51:20 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-08-24 03:51:20 (GMT) |
commit | 0f32923c15739ad555e8915cba8afae9c05fd485 (patch) | |
tree | ec20b92d6bccbc667963832de2220da200f35315 /examples/declarative/toys/tvtennis | |
parent | 35db70bf1c046f880861bbf4f48b8741ced405c4 (diff) | |
download | Qt-0f32923c15739ad555e8915cba8afae9c05fd485.zip Qt-0f32923c15739ad555e8915cba8afae9c05fd485.tar.gz Qt-0f32923c15739ad555e8915cba8afae9c05fd485.tar.bz2 |
Use SpringAnimation in relevant examples again.
Diffstat (limited to 'examples/declarative/toys/tvtennis')
-rw-r--r-- | examples/declarative/toys/tvtennis/tvtennis.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/toys/tvtennis/tvtennis.qml b/examples/declarative/toys/tvtennis/tvtennis.qml index 2e144ed..4080c87 100644 --- a/examples/declarative/toys/tvtennis/tvtennis.qml +++ b/examples/declarative/toys/tvtennis/tvtennis.qml @@ -87,14 +87,14 @@ Rectangle { color: "Lime" x: 2; width: 20; height: 90 y: ball.direction == 'left' ? ball.y - 45 : page.height/2 -45; - Behavior on y { SpringAnimation{ spring: 1; damping: .1; } } + Behavior on y { SpringAnimation{ velocity: 300 } } } Rectangle { id: rightBat color: "Lime" x: page.width - 22; width: 20; height: 90 y: ball.direction == 'right' ? ball.y - 45 : page.height/2 -45; - Behavior on y { SpringAnimation{ spring: 1; damping: .1; } } + Behavior on y { SpringAnimation{ velocity: 300 } } } // The rest, to make it look realistic, if neither ever scores... |