diff options
Diffstat (limited to 'src/imports/controls/material/SwitchDelegate.qml')
-rw-r--r-- | src/imports/controls/material/SwitchDelegate.qml | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/imports/controls/material/SwitchDelegate.qml b/src/imports/controls/material/SwitchDelegate.qml index b729f01e..097f0acd 100644 --- a/src/imports/controls/material/SwitchDelegate.qml +++ b/src/imports/controls/material/SwitchDelegate.qml @@ -54,15 +54,12 @@ T.SwitchDelegate { bottomPadding: 8 spacing: 16 - //! [indicator] indicator: SwitchIndicator { x: text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2 y: control.topPadding + (control.availableHeight - height) / 2 control: control } - //! [indicator] - //! [contentItem] contentItem: Text { leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing @@ -75,14 +72,11 @@ T.SwitchDelegate { horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter } - //! [contentItem] - //! [background] background: Rectangle { implicitHeight: 48 visible: control.down || control.highlighted color: control.down ? control.Material.buttonPressColor : control.Material.listHighlightColor } - //! [background] } |