diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-05-19 06:13:17 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-05-19 06:13:17 (GMT) |
commit | 38a978121bef0efd1f6fd573c4289e40352b63a6 (patch) | |
tree | 8323766cda9f181689098e62f36b9cb4ad089bae /examples/declarative/dial | |
parent | 2057092a86b049075e50eb3bc934982cec991f9b (diff) | |
parent | da5cb2883e2b0e4a52a0aecba2c82808e64668f8 (diff) | |
download | Qt-38a978121bef0efd1f6fd573c4289e40352b63a6.zip Qt-38a978121bef0efd1f6fd573c4289e40352b63a6.tar.gz Qt-38a978121bef0efd1f6fd573c4289e40352b63a6.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative/dial')
-rw-r--r-- | examples/declarative/dial/DialLibrary/Dial.qml | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/declarative/dial/DialLibrary/Dial.qml b/examples/declarative/dial/DialLibrary/Dial.qml index 2e214a8..e3fd382 100644 --- a/examples/declarative/dial/DialLibrary/Dial.qml +++ b/examples/declarative/dial/DialLibrary/Dial.qml @@ -4,26 +4,26 @@ Item { width: 210; height: 210 Image { id: Background; source: "background.svg" } - Item { - x: 104; y: 102 - rotation: Needle.rotation - Image { - source: "needle_shadow.svg" - x: -104; y: -102 + + Image { + source: "needle_shadow.svg" + transform: Rotation { + originX: 104; originY: 102 + angle: NeedleRotation.angle } } - Item { + Image { id: Needle - x: 102; y: 98 - rotation: -130 - rotation: Follow { - spring: 1.4 - damping: .15 - source: Math.min(Math.max(-130, value*2.2 - 130), 133) - } - Image { - source: "needle.svg" - x: -102; y: -98 + source: "needle.svg" + transform: Rotation { + id: NeedleRotation + originX: 102; originY: 98 + angle: -130 + angle: Follow { + spring: 1.4 + damping: .15 + source: Math.min(Math.max(-130, value*2.2 - 130), 133) + } } } Image { source: "overlay.svg" } |