Give PC2 slider implicitWidth and implicitHeight

Needed to prevent them from having 0 width and height in Layouts.
This commit is contained in:
Noah Davis 2020-08-18 15:16:57 -04:00
parent d874449ad3
commit 2774a61db7

View File

@ -46,8 +46,8 @@ QtControls.Slider {
*/ */
property bool inverted: false property bool inverted: false
width: slider.isVertical ? PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6 : 200 implicitWidth: 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 implicitHeight: slider.isVertical ? 200 : PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height*1.6
// TODO: needs to define if there will be specific graphics for // TODO: needs to define if there will be specific graphics for
// disabled sliders // disabled sliders
opacity: enabled ? 1.0 : 0.5 opacity: enabled ? 1.0 : 0.5