From 8732b0681b99e5de01d6f53de33306ca70b01171 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 6 Mar 2017 10:59:32 +0100 Subject: =?UTF-8?q?Default:=20visually=20indicate=20RangeSlider=E2=80=99s?= =?UTF-8?q?=20range?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the range that the user has selected clear, and is already done by other styles. Change-Id: Ib8f2c81e823193fa9934587d04fc011aafc0bd65 Reviewed-by: J-P Nurmi --- src/imports/controls/RangeSlider.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/imports/controls/RangeSlider.qml') diff --git a/src/imports/controls/RangeSlider.qml b/src/imports/controls/RangeSlider.qml index 5f09d224..85ee00a0 100644 --- a/src/imports/controls/RangeSlider.qml +++ b/src/imports/controls/RangeSlider.qml @@ -97,5 +97,14 @@ T.RangeSlider { scale: horizontal && control.mirrored ? -1 : 1 readonly property bool horizontal: control.orientation === Qt.Horizontal + + Rectangle { + x: parent.horizontal ? control.first.position * parent.width + 3 : 0 + y: parent.horizontal ? 0 : control.second.visualPosition * parent.height + 3 + width: parent.horizontal ? control.second.position * parent.width - control.first.position * parent.width - 6 : 6 + height: parent.horizontal ? 6 : control.second.position * parent.height - control.first.position * parent.height - 6 + + color: Default.textColor + } } } -- cgit v1.2.3