diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-07-21 00:04:11 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-07-21 00:58:35 (GMT) |
commit | 6d8b3453b6b4b151c777ad541ab25ca6bacc7381 (patch) | |
tree | 07313500589c0074f638ce01dd3fbfe149935fa4 /examples/declarative/toys | |
parent | 78a01438e5a37fd1778924f73ca8bfa55960b0d0 (diff) | |
download | Qt-6d8b3453b6b4b151c777ad541ab25ca6bacc7381.zip Qt-6d8b3453b6b4b151c777ad541ab25ca6bacc7381.tar.gz Qt-6d8b3453b6b4b151c777ad541ab25ca6bacc7381.tar.bz2 |
Fix clock example: make sure hands always moves forward.
Task-number: QTBUG-12292
Diffstat (limited to 'examples/declarative/toys')
-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 } } } } |