diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-19 05:27:44 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-19 05:27:44 (GMT) |
commit | da5cb2883e2b0e4a52a0aecba2c82808e64668f8 (patch) | |
tree | 9e1506f7f2b9e5318f5025147acfe1f8de9c65f1 /examples | |
parent | f9aa68b172ddcaa63e5a1bc4d91649d0734d3b15 (diff) | |
download | Qt-da5cb2883e2b0e4a52a0aecba2c82808e64668f8.zip Qt-da5cb2883e2b0e4a52a0aecba2c82808e64668f8.tar.gz Qt-da5cb2883e2b0e4a52a0aecba2c82808e64668f8.tar.bz2 |
Docs and minor fixes for the Rotation element.
Diffstat (limited to 'examples')
-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" } |