summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dial
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-06 04:05:40 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-06 04:05:40 (GMT)
commit43199af242918b3c77bb47bdcc3ec60f8236b0d3 (patch)
tree94293b06614afbd3a2a89004204a23e7228a3d51 /examples/declarative/dial
parentb9663faad39ae02b7dbee9f2cea7dce7d25894f8 (diff)
downloadQt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.zip
Qt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.tar.gz
Qt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.tar.bz2
lowercase ids
Diffstat (limited to 'examples/declarative/dial')
-rw-r--r--examples/declarative/dial/DialLibrary/Dial.qml13
-rw-r--r--examples/declarative/dial/dial.qml6
2 files changed, 9 insertions, 10 deletions
diff --git a/examples/declarative/dial/DialLibrary/Dial.qml b/examples/declarative/dial/DialLibrary/Dial.qml
index 1a163a8..c1e9770 100644
--- a/examples/declarative/dial/DialLibrary/Dial.qml
+++ b/examples/declarative/dial/DialLibrary/Dial.qml
@@ -1,12 +1,12 @@
import Qt 4.6
Item {
- id: Root
+ id: root
property real value : 0
width: 210; height: 210
- Image { id: Background; source: "background.png" }
+ Image { source: "background.png" }
Image {
x: 93
@@ -14,23 +14,22 @@ Item {
source: "needle_shadow.png"
transform: Rotation {
origin.x: 11; origin.y: 67
- angle: NeedleRotation.angle
+ angle: needleRotation.angle
}
}
Image {
- id: Needle
+ id: needle
x: 95; y: 33
smooth: true
source: "needle.png"
transform: Rotation {
- id: NeedleRotation
+ id: needleRotation
origin.x: 7; origin.y: 65
angle: -130
angle: SpringFollow {
- id: MyFollow
spring: 1.4
damping: .15
- source: Math.min(Math.max(-130, Root.value*2.2 - 130), 133)
+ source: Math.min(Math.max(-130, root.value*2.2 - 130), 133)
}
}
}
diff --git a/examples/declarative/dial/dial.qml b/examples/declarative/dial/dial.qml
index 472ac66..c7baf25 100644
--- a/examples/declarative/dial/dial.qml
+++ b/examples/declarative/dial/dial.qml
@@ -6,10 +6,10 @@ Rectangle {
width: 210; height: 240
// Dial with a slider to adjust it
- Dial { id: Dial; value: Slider.x-2 }
+ Dial { id: dial; value: slider.x-2 }
Rectangle {
- anchors.top: Dial.bottom
+ anchors.top: dial.bottom
x: 20; width: 160; height: 16
gradient: Gradient {
GradientStop { position: 0.0; color: "steelblue" }
@@ -17,7 +17,7 @@ Rectangle {
}
radius: 8; opacity: 0.7; smooth: true
Rectangle {
- id: Slider
+ id: slider
x: 2; y: 2; width: 30; height: 12
radius: 6; smooth: true
gradient: Gradient {