diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-05 01:18:53 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-05 01:18:53 (GMT) |
commit | 24a94c1b88fc72243c53e1bf51b87dc0d0be41b7 (patch) | |
tree | 01d20c577044a351950814a6fda873d489d78bf2 /examples/declarative/plugins | |
parent | 38ff49e632da2bd61ac5fb59f57f62208c2687fd (diff) | |
download | Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.zip Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.tar.gz Qt-24a94c1b88fc72243c53e1bf51b87dc0d0be41b7.tar.bz2 |
declarative examples cleanup
Diffstat (limited to 'examples/declarative/plugins')
-rw-r--r-- | examples/declarative/plugins/com/nokia/TimeExample/Clock.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml b/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml index 01ec686..622fcf9 100644 --- a/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml +++ b/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml @@ -1,8 +1,8 @@ import Qt 4.6 -Item { +Rectangle { id: clock - width: 200; height: 200 + width: 200; height: 200; color: "gray" property alias city: cityLabel.text property var hours @@ -18,7 +18,7 @@ Item { transform: Rotation { id: hourRotation origin.x: 7.5; origin.y: 73; angle: 0 - angle: SpringFollow { + SpringFollow on angle { spring: 2; damping: 0.2; modulus: 360 source: (clock.hours * 30) + (clock.minutes * 0.5) } @@ -32,7 +32,7 @@ Item { transform: Rotation { id: minuteRotation origin.x: 6.5; origin.y: 83; angle: 0 - angle: SpringFollow { + SpringFollow on angle { spring: 2; damping: 0.2; modulus: 360 source: clock.minutes * 6 } |