aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls')
-rw-r--r--src/imports/controls/CheckBox.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/controls/CheckBox.qml b/src/imports/controls/CheckBox.qml
index c250b54a..9e71dda9 100644
--- a/src/imports/controls/CheckBox.qml
+++ b/src/imports/controls/CheckBox.qml
@@ -55,6 +55,7 @@ AbstractCheckBox {
padding: Theme.padding
+ //! [indicator]
indicator: Rectangle {
implicitWidth: 20
implicitHeight: 20
@@ -79,7 +80,9 @@ AbstractCheckBox {
border.color: control.Theme.frameColor
}
}
+ //! [indicator]
+ //! [label]
label: Text {
x: control.mirrored ? control.leftPadding : (indicator.x + indicator.width + control.Theme.spacing)
y: control.topPadding
@@ -93,4 +96,5 @@ AbstractCheckBox {
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}
+ //! [label]
}