From 781e07f803972942001f624d96b0087203f41de6 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Mon, 24 Aug 2009 18:08:58 +1000 Subject: Fix dial example Follow now has value property, so need to reference the root object explicitly. --- examples/declarative/dial/DialLibrary/Dial.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) } } } -- cgit v0.12