diff options
author | Peter Yard <peter.yard@nokia.com> | 2010-05-14 00:14:25 (GMT) |
---|---|---|
committer | Peter Yard <peter.yard@nokia.com> | 2010-05-14 00:14:25 (GMT) |
commit | dcc9a7e72fe4c283df59378d08d75aecfa3b3b05 (patch) | |
tree | 8ada2e30ed017e822d766637fcc01b4c85050fb8 /examples/declarative | |
parent | d7438b4761787ffdb6cee82ce0103d653d4cbd24 (diff) | |
download | Qt-dcc9a7e72fe4c283df59378d08d75aecfa3b3b05.zip Qt-dcc9a7e72fe4c283df59378d08d75aecfa3b3b05.tar.gz Qt-dcc9a7e72fe4c283df59378d08d75aecfa3b3b05.tar.bz2 |
Added snippet labels to QML Dial example.
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/dial/content/Dial.qml | 6 | ||||
-rw-r--r-- | examples/declarative/dial/dial-example.qml | 10 |
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 fd899a5..dd51435 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: "XAxis"; drag.minimumX: 2; drag.maximumX: container.width - 32 + drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 2 + drag.maximumX: container.width - 32 } } } } +//! [0]
\ No newline at end of file |