From 2774a61db7ee12bbc3e39cdf496d80773b7b83a0 Mon Sep 17 00:00:00 2001 From: Noah Davis Date: Tue, 18 Aug 2020 15:16:57 -0400 Subject: [PATCH] Give PC2 slider implicitWidth and implicitHeight Needed to prevent them from having 0 width and height in Layouts. --- src/declarativeimports/plasmacomponents/qml/Slider.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/Slider.qml b/src/declarativeimports/plasmacomponents/qml/Slider.qml index 5eb69fe2c..07b56ef9c 100644 --- a/src/declarativeimports/plasmacomponents/qml/Slider.qml +++ b/src/declarativeimports/plasmacomponents/qml/Slider.qml @@ -46,8 +46,8 @@ QtControls.Slider { */ property bool inverted: false - width: slider.isVertical ? PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6 : 200 - height: slider.isVertical ? 200 : PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6 + implicitWidth: slider.isVertical ? PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6 : 200 + implicitHeight: slider.isVertical ? 200 : PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6 // TODO: needs to define if there will be specific graphics for // disabled sliders opacity: enabled ? 1.0 : 0.5