diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-03-08 11:31:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-11 09:14:37 +0100 |
commit | f2e33400bdd0515da95ddf864947cdbff3cbcfd7 (patch) | |
tree | fa4e77602db810ee4dda591ad7fcc1675b1771e6 /src/controls/CheckBox.qml | |
parent | 62548206943a2b088f41319de7bbab0643a7e4b0 (diff) | |
download | qtquickcontrols-f2e33400bdd0515da95ddf864947cdbff3cbcfd7.tar.gz |
Doc - CheckBox: add code sample to the doc
Change-Id: I6af7ed223e895a47d151e955d4a8e6d4ac9e6662
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/CheckBox.qml')
-rw-r--r-- | src/controls/CheckBox.qml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/controls/CheckBox.qml b/src/controls/CheckBox.qml index eeedd375..542d0f3e 100644 --- a/src/controls/CheckBox.qml +++ b/src/controls/CheckBox.qml @@ -71,7 +71,21 @@ import "Styles/Settings.js" as Settings The text of the label shown next to the checkbox can be set with the \l {AbstractCheckable::text}{text} property. - Whenever a CheckBox is clicked, it emits the clicked() signal. + \qml + Column { + CheckBox { + text: qsTr("Breakfast") + } + CheckBox { + text: qsTr("Lunch") + } + CheckBox { + text: qsTr("Dinner") + } + } + \endqml + + Whenever a CheckBox is clicked, it emits the \l {AbstractCheckable::clicked}{clicked()} signal. */ AbstractCheckable { |