From 00664e8b59af37ab741ba2ae5674354a9a25e6b2 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 18 Apr 2018 13:52:09 +0200 Subject: RangeSlider: add first|second.implicitHandleWidth|Height [ChangeLog][Controls][RangeSlider] Added first.implicitHandleWidth, first.implicitHandleHeight, second.implicitHandleWidth, and second.implicitHandleHeight properties. Change-Id: Iab68a7a905c4b6515517e3b9eb11c6fd70782764 Reviewed-by: Mitch Curtis --- src/imports/controls/fusion/RangeSlider.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/imports/controls/fusion') diff --git a/src/imports/controls/fusion/RangeSlider.qml b/src/imports/controls/fusion/RangeSlider.qml index ae071d39..a0616413 100644 --- a/src/imports/controls/fusion/RangeSlider.qml +++ b/src/imports/controls/fusion/RangeSlider.qml @@ -45,11 +45,11 @@ T.RangeSlider { id: control implicitWidth: Math.max(implicitBackgroundWidth, - Math.max(first.handle ? first.handle.implicitWidth : 0, - second.handle ? second.handle.implicitWidth : 0) + leftPadding + rightPadding) + Math.max(first.implicitHandleWidth, + second.implicitHandleWidth) + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight, - Math.max(first.handle ? first.handle.implicitHeight : 0, - second.handle ? second.handle.implicitHeight : 0) + topPadding + bottomPadding) + Math.max(first.implicitHandleHeight, + second.implicitHandleHeight) + topPadding + bottomPadding) first.handle: SliderHandle { x: control.leftPadding + Math.round(control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2) -- cgit v1.2.3