diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-24 08:08:58 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-24 08:08:58 (GMT) |
commit | 781e07f803972942001f624d96b0087203f41de6 (patch) | |
tree | 8fe7b3d2529a32978a6f76a0003776fdf330b2ba /examples/declarative/dial | |
parent | 494d2d9041b7277f6d22146593ff01c7c7f7021b (diff) | |
download | Qt-781e07f803972942001f624d96b0087203f41de6.zip Qt-781e07f803972942001f624d96b0087203f41de6.tar.gz Qt-781e07f803972942001f624d96b0087203f41de6.tar.bz2 |
Fix dial example
Follow now has value property, so need to reference the root object
explicitly.
Diffstat (limited to 'examples/declarative/dial')
-rw-r--r-- | examples/declarative/dial/DialLibrary/Dial.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/declarative/dial/DialLibrary/Dial.qml b/examples/declarative/dial/DialLibrary/Dial.qml index 08308fa..f53b25e 100644 --- a/examples/declarative/dial/DialLibrary/Dial.qml +++ b/examples/declarative/dial/DialLibrary/Dial.qml @@ -1,6 +1,7 @@ import Qt 4.6 Item { + id: Root property real value : 0 width: 210; height: 210 @@ -26,9 +27,10 @@ Item { origin.x: 7; origin.y: 65 angle: -130 angle: Follow { +id: MyFollow spring: 1.4 damping: .15 - source: Math.min(Math.max(-130, value*2.2 - 130), 133) + source: Math.min(Math.max(-130, Root.value*2.2 - 130), 133) } } } |