minor formatting fix

This commit is contained in:
end-4
2026-03-24 17:17:01 +01:00
parent 72b8b7aecb
commit 8f66afe109
@@ -176,9 +176,7 @@ Slider {
Rectangle { Rectangle {
required property int index required property int index
anchors { anchors.verticalCenter: background.verticalCenter
verticalCenter: background.verticalCenter
}
property real leftMargin: index > 0 ? root.dividerMargins : root.handleMargins property real leftMargin: index > 0 ? root.dividerMargins : root.handleMargins
property real rightMargin: index < background.rightWidths.length - 1 ? root.dividerMargins : 0 property real rightMargin: index < background.rightWidths.length - 1 ? root.dividerMargins : 0
x: background.rightValues[index] * root.effectiveDraggingWidth + leftMargin + (index === 0 ? handleWidth / 2 : 0) + leftPadding x: background.rightValues[index] * root.effectiveDraggingWidth + leftMargin + (index === 0 ? handleWidth / 2 : 0) + leftPadding
@@ -208,7 +206,7 @@ Slider {
implicitWidth: root.handleWidth implicitWidth: root.handleWidth
implicitHeight: root.handleHeight implicitHeight: root.handleHeight
x: leftPadding + (root.visualPosition * root.effectiveDraggingWidth) - (root.handleWidth / 2) x: root.leftPadding + (root.visualPosition * root.effectiveDraggingWidth) - (root.handleWidth / 2)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
radius: Appearance.rounding.full radius: Appearance.rounding.full
color: root.handleColor color: root.handleColor