diff options
author | David Boddie <david.boddie@nokia.com> | 2011-01-17 19:12:14 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-01-17 19:12:14 (GMT) |
commit | 72900c3004825514244ebd38f38c0443b9774ad3 (patch) | |
tree | 11105094b00cfdb37dd088d4ca88ecaab9e0bab8 /doc/src/declarative/example-slideswitch.qdoc | |
parent | 14f908687edd09664bc7909ef7a0bdd071456402 (diff) | |
download | Qt-72900c3004825514244ebd38f38c0443b9774ad3.zip Qt-72900c3004825514244ebd38f38c0443b9774ad3.tar.gz Qt-72900c3004825514244ebd38f38c0443b9774ad3.tar.bz2 |
Doc: Fixed qdoc warnings caused by invalid/incomplete QML snippets.
Diffstat (limited to 'doc/src/declarative/example-slideswitch.qdoc')
-rw-r--r-- | doc/src/declarative/example-slideswitch.qdoc | 12 |
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. |