summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/example-slideswitch.qdoc
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-01-27 16:31:11 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-01-27 16:31:11 (GMT)
commitd70d17a8ebea25a836e0fb101796cb70d5ca5efd (patch)
tree0029a39fd51caf709a0e0086dc3da3dbe21ad929 /doc/src/declarative/example-slideswitch.qdoc
parentbbd87cfe022fab15a5cac555ce155f9caa27ff06 (diff)
parent91f9b95b931f441e209ecb12c620e1657810f338 (diff)
downloadQt-d70d17a8ebea25a836e0fb101796cb70d5ca5efd.zip
Qt-d70d17a8ebea25a836e0fb101796cb70d5ca5efd.tar.gz
Qt-d70d17a8ebea25a836e0fb101796cb70d5ca5efd.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'doc/src/declarative/example-slideswitch.qdoc')
-rw-r--r--doc/src/declarative/example-slideswitch.qdoc12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/src/declarative/example-slideswitch.qdoc b/doc/src/declarative/example-slideswitch.qdoc
index 2b82b2f..9f84ee6 100644
--- a/doc/src/declarative/example-slideswitch.qdoc
+++ b/doc/src/declarative/example-slideswitch.qdoc
@@ -60,8 +60,16 @@ It can be used to activate/disactivate the switch or to query its current state.
In this example:
\qml
-Switch { id: mySwitch; on: true }
-Text { text: "The switch is on"; visible: mySwitch.on == true }
+Item {
+ Switch {
+ id: mySwitch
+ on: true
+ }
+ Text {
+ text: "The switch is on"
+ visible: mySwitch.on == true
+ }
+}
\endqml
the text will only be visible when the switch is on.