summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-08-09 18:50:45 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-08-09 18:50:45 (GMT)
commitf33359fb0c56fe88e0ae3c564b7847f90889eac2 (patch)
treec30e7b4dc6ad113896baba3ea291373e0c6af142 /examples/declarative
parent86eec3f6f98b387bf6a815c1a8e916965928b317 (diff)
downloadQt-f33359fb0c56fe88e0ae3c564b7847f90889eac2.zip
Qt-f33359fb0c56fe88e0ae3c564b7847f90889eac2.tar.gz
Qt-f33359fb0c56fe88e0ae3c564b7847f90889eac2.tar.bz2
Doc: Fixes to Qt Quick documentation.
Reviewed-by: Trust Me To-be-verified-by: Qt Doc Team
Diffstat (limited to 'examples/declarative')
-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 b5074a64..3ffa09a 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 95df68c..46cc3e6 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]