summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/dial/content/Dial.qml6
-rw-r--r--examples/declarative/dial/dial-example.qml10
2 files changed, 14 insertions, 2 deletions
diff --git a/examples/declarative/dial/content/Dial.qml b/examples/declarative/dial/content/Dial.qml
index f9ab3e3..6f24801 100644
--- a/examples/declarative/dial/content/Dial.qml
+++ b/examples/declarative/dial/content/Dial.qml
@@ -8,6 +8,7 @@ Item {
Image { source: "background.png" }
+//! [needle_shadow]
Image {
x: 93
y: 35
@@ -17,6 +18,8 @@ Item {
angle: needleRotation.angle
}
}
+//! [needle_shadow]
+//! [needle]
Image {
id: needle
x: 95; y: 33
@@ -33,5 +36,8 @@ Item {
}
}
}
+//! [needle]
+//! [overlay]
Image { x: 21; y: 18; source: "overlay.png" }
+//! [overlay]
}
diff --git a/examples/declarative/dial/dial-example.qml b/examples/declarative/dial/dial-example.qml
index 2e102b0..900954f 100644
--- a/examples/declarative/dial/dial-example.qml
+++ b/examples/declarative/dial/dial-example.qml
@@ -1,6 +1,7 @@
import Qt 4.7
import "content"
+//! [0]
Rectangle {
color: "#545454"
width: 300; height: 300
@@ -14,7 +15,10 @@ Rectangle {
Rectangle {
id: container
- anchors { bottom: parent.bottom; left: parent.left; right: parent.right; leftMargin: 20; rightMargin: 20; bottomMargin: 10 }
+ anchors { bottom: parent.bottom; left: parent.left
+ right: parent.right; leftMargin: 20; rightMargin: 20
+ bottomMargin: 10
+ }
height: 16
radius: 8
@@ -37,8 +41,10 @@ Rectangle {
MouseArea {
anchors.fill: parent
- drag.target: parent; drag.axis: Drag.XAxis; drag.minimumX: 2; drag.maximumX: container.width - 32
+ drag.target: parent; drag.axis: Drag.XAxis
+ drag.minimumX: 2; drag.maximumX: container.width - 32
}
}
}
}
+//! [0] \ No newline at end of file