diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-07-21 00:04:11 (GMT) |
---|---|---|
committer | Toby Tomkins <toby.tomkins@nokia.com> | 2010-07-26 04:10:29 (GMT) |
commit | 76f4e2387b7c40b177845ac1258b91425a6d059c (patch) | |
tree | 5c10a695a669aeb8030891c289f8f3352459af8c /examples | |
parent | df40f6846b509087282178bffe572117d8d3eb33 (diff) | |
download | Qt-76f4e2387b7c40b177845ac1258b91425a6d059c.zip Qt-76f4e2387b7c40b177845ac1258b91425a6d059c.tar.gz Qt-76f4e2387b7c40b177845ac1258b91425a6d059c.tar.bz2 |
Fix clock example: make sure hands always moves forward.
Task-number: QTBUG-12292
(cherry picked from commit 6d8b3453b6b4b151c777ad541ab25ca6bacc7381)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/toys/clocks/content/Clock.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/toys/clocks/content/Clock.qml b/examples/declarative/toys/clocks/content/Clock.qml index 24a07ec..eaa14c6 100644 --- a/examples/declarative/toys/clocks/content/Clock.qml +++ b/examples/declarative/toys/clocks/content/Clock.qml @@ -77,7 +77,7 @@ Item { origin.x: 7.5; origin.y: 73; angle: (clock.hours * 30) + (clock.minutes * 0.5) Behavior on angle { - NumberAnimation{} + RotationAnimation{ direction: RotationAnimation.Clockwise } } } } @@ -91,7 +91,7 @@ Item { origin.x: 6.5; origin.y: 83; angle: clock.minutes * 6 Behavior on angle { - NumberAnimation{} + RotationAnimation{ direction: RotationAnimation.Clockwise } } } } @@ -105,7 +105,7 @@ Item { origin.x: 2.5; origin.y: 80; angle: clock.seconds * 6 Behavior on angle { - NumberAnimation{} + RotationAnimation{ direction: RotationAnimation.Clockwise } } } } |