summaryrefslogtreecommitdiffstats
path: root/src/controls/RadioButton.qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-03-08 11:33:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 10:53:25 +0100
commite6c464f6f4a4ae33c81e4979523651891f9ea8fb (patch)
treeb18c1fb2e26c7420808c7bf3eef68b0f0b04c899 /src/controls/RadioButton.qml
parent6b10d5f60bf11610cbff5d2a59b5826a1459285f (diff)
Doc - RadioButton: Update documentation
Change-Id: I57be1e86b4230f6ca64b2e1581a9d60e1a1fa131 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/RadioButton.qml')
-rw-r--r--src/controls/RadioButton.qml21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/controls/RadioButton.qml b/src/controls/RadioButton.qml
index 46666437a..47eab5ee3 100644
--- a/src/controls/RadioButton.qml
+++ b/src/controls/RadioButton.qml
@@ -41,11 +41,8 @@
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Controls.Private 1.0
-
import "Styles/Settings.js" as Settings
-// jb : Size should not depend on background, we should make it consistent
-
/*!
\qmltype RadioButton
\inqmlmodule QtQuick.Controls 1.0
@@ -57,6 +54,24 @@ import "Styles/Settings.js" as Settings
choice. In a group of radio buttons, only one radio button at a time can be
checked; if the user selects another button, the previously selected button
is switched off.
+
+ \qml
+ GroupBox {
+ title: qsTr("Search")
+ Column {
+ ExclusiveGroup { id: group }
+ RadioButton {
+ text: qsTr("From top")
+ exclusiveGroup: group
+ checked: true
+ }
+ RadioButton {
+ text: qsTr("From cursor")
+ exclusiveGroup: group
+ }
+ }
+ }
+ \endqml
*/
AbstractCheckable {