Commit ca8d5262 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[RangeSlider] Remove inset, endVisualPosition and palette

palette is set automatically anyway. For inset and endVisualPosition,
see cf3c7f15
parent 40830295
......@@ -4,16 +4,15 @@
*/
import QtQuick 2.6
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Templates 2.15 as T
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.16 as Kirigami
import "impl"
T.RangeSlider {
id: control
palette: Kirigami.Theme.palette
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
Math.max(first.implicitHandleWidth,
second.implicitHandleWidth) + leftPadding + rightPadding)
......@@ -26,18 +25,6 @@ T.RangeSlider {
padding: Kirigami.Settings.tabletMode ? Kirigami.Units.mediumSpacing : 0
property bool __hasHandle: Boolean(control.handle)
property real __preInset: Math.max(
(__hasHandle ?
handle.width : Kirigami.Units.inlineControlHeight) - implicitBackgroundWidth,
(__hasHandle ?
handle.height : Kirigami.Units.inlineControlHeight) - implicitBackgroundHeight
)/2
leftInset: __preInset + leftPadding
rightInset: __preInset + rightPadding
topInset: __preInset + topPadding
bottomInset: __preInset + bottomPadding
first.handle: SliderHandle {
control: control
position: control.first.position
......@@ -62,6 +49,5 @@ T.RangeSlider {
control: control
startPosition: first.position
endPosition: second.position
endVisualPosition: second.visualPosition
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment