From 9708f54144f102e4f97334c953a0a890874a6881 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 12 Apr 2018 08:52:58 +0200 Subject: Use implicitBackgroundWidth and implicitBackgroundHeight A simple search'n'replace change without hidden functional changes. Change-Id: I8e42f8ad30977630005529094eea726efa15a26d Reviewed-by: Mitch Curtis --- src/imports/controls/RangeSlider.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/controls/RangeSlider.qml') diff --git a/src/imports/controls/RangeSlider.qml b/src/imports/controls/RangeSlider.qml index c096608e..86711958 100644 --- a/src/imports/controls/RangeSlider.qml +++ b/src/imports/controls/RangeSlider.qml @@ -42,10 +42,10 @@ import QtQuick.Templates 2.5 as T T.RangeSlider { id: control - implicitWidth: Math.max(background ? background.implicitWidth : 0, + implicitWidth: Math.max(implicitBackgroundWidth, Math.max(first.handle ? first.handle.implicitWidth : 0, second.handle ? second.handle.implicitWidth : 0) + leftPadding + rightPadding) - implicitHeight: Math.max(background ? background.implicitHeight : 0, + implicitHeight: Math.max(implicitBackgroundHeight, Math.max(first.handle ? first.handle.implicitHeight : 0, second.handle ? second.handle.implicitHeight : 0) + topPadding + bottomPadding) -- cgit v1.2.3