diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-04-23 04:59:12 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-04-23 04:59:12 (GMT) |
commit | eab843bce73e3023623bf849a35edda4deee97c4 (patch) | |
tree | 3786ea42bee1214b17245e0d72914a53d01b65fc /examples | |
parent | 89d18c86e093befc2fc8cd7fc852610f6e23696b (diff) | |
parent | e5996710736d7934cf64484aa43a1014836b6d20 (diff) | |
download | Qt-eab843bce73e3023623bf849a35edda4deee97c4.zip Qt-eab843bce73e3023623bf849a35edda4deee97c4.tar.gz Qt-eab843bce73e3023623bf849a35edda4deee97c4.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/dial/DialLibrary/Dial.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/declarative/dial/DialLibrary/Dial.qml b/examples/declarative/dial/DialLibrary/Dial.qml index acff119..e1b9f18 100644 --- a/examples/declarative/dial/DialLibrary/Dial.qml +++ b/examples/declarative/dial/DialLibrary/Dial.qml @@ -1,12 +1,11 @@ <Item width="210" height="210"> <properties><Property name="value" type="real" value="0"/></properties> <Image id="Background" src="background.svg"/> - <Item x="102" y="98" rotation="-130"> + <Item 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)}"/></rotation> <Image src="needle.svg" x="-102" y="-98"/> </Item> - <Item x="104" y="102" rotation="-130"> - <rotation><Follow spring="1.4" damping=".15" source="{Math.min(Math.max(-130, value*2.2 - 130), 133)}"/></rotation> + <Item x="104" y="102" rotation="{Needle.rotation}"> <Image src="needle_shadow.svg" x="-104" y="-102"/> </Item> <Image src="overlay.svg"/> |