summaryrefslogtreecommitdiff
path: root/examples/declarative/ui-components
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-08-09 20:50:45 +0200
committerDavid Boddie <dboddie@trolltech.com>2010-08-09 20:50:45 +0200
commitf33359fb0c56fe88e0ae3c564b7847f90889eac2 (patch)
treec30e7b4dc6ad113896baba3ea291373e0c6af142 /examples/declarative/ui-components
parent86eec3f6f98b387bf6a815c1a8e916965928b317 (diff)
downloadqt4-tools-f33359fb0c56fe88e0ae3c564b7847f90889eac2.tar.gz
Doc: Fixes to Qt Quick documentation.
Reviewed-by: Trust Me To-be-verified-by: Qt Doc Team
Diffstat (limited to 'examples/declarative/ui-components')
-rw-r--r--examples/declarative/ui-components/dialcontrol/content/Dial.qml2
-rw-r--r--examples/declarative/ui-components/dialcontrol/dialcontrol.qml4
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/declarative/ui-components/dialcontrol/content/Dial.qml b/examples/declarative/ui-components/dialcontrol/content/Dial.qml
index b5074a649b..3ffa09ae40 100644
--- a/examples/declarative/ui-components/dialcontrol/content/Dial.qml
+++ b/examples/declarative/ui-components/dialcontrol/content/Dial.qml
@@ -68,6 +68,7 @@ Item {
transform: Rotation {
id: needleRotation
origin.x: 5; origin.y: 65
+ //! [needle angle]
angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133)
Behavior on angle {
SpringAnimation {
@@ -75,6 +76,7 @@ Item {
damping: .15
}
}
+ //! [needle angle]
}
}
//! [needle]
diff --git a/examples/declarative/ui-components/dialcontrol/dialcontrol.qml b/examples/declarative/ui-components/dialcontrol/dialcontrol.qml
index 95df68c638..46cc3e6f4e 100644
--- a/examples/declarative/ui-components/dialcontrol/dialcontrol.qml
+++ b/examples/declarative/ui-components/dialcontrol/dialcontrol.qml
@@ -38,8 +38,10 @@
**
****************************************************************************/
+//! [imports]
import Qt 4.7
import "content"
+//! [imports]
//! [0]
Rectangle {
@@ -87,4 +89,4 @@ Rectangle {
}
}
}
-//! [0] \ No newline at end of file
+//! [0]