aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ToggleButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/ToggleButton.qml')
-rw-r--r--src/imports/controls/ToggleButton.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/imports/controls/ToggleButton.qml b/src/imports/controls/ToggleButton.qml
index 1655a317..2ecc0f18 100644
--- a/src/imports/controls/ToggleButton.qml
+++ b/src/imports/controls/ToggleButton.qml
@@ -43,7 +43,7 @@ AbstractToggleButton {
implicitWidth: Math.max(background ? background.implicitWidth : 0,
(label ? label.implicitWidth : 0) +
(indicator ? indicator.implicitWidth : 0) +
- (label && indicator ? Theme.spacing : 0) + leftPadding + rightPadding)
+ (label && indicator ? spacing : 0) + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(label ? label.implicitHeight : 0,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
@@ -55,6 +55,7 @@ AbstractToggleButton {
Accessible.role: Accessible.Button
padding: Theme.padding
+ spacing: Theme.spacing
//! [indicator]
indicator: Rectangle {
@@ -93,9 +94,9 @@ AbstractToggleButton {
//! [label]
label: Text {
- x: control.mirrored ? control.leftPadding : (indicator.x + indicator.width + control.Theme.spacing)
+ x: control.mirrored ? control.leftPadding : (indicator.x + indicator.width + control.spacing)
y: control.topPadding
- width: control.availableWidth - indicator.width - control.Theme.spacing
+ width: control.availableWidth - indicator.width - control.spacing
height: control.availableHeight
text: control.text