hide scrollbar when useless

not only the root scrollbar should be hidden when
control.size == 1.0 but also background and
contentItem as they get reparented
This commit is contained in:
Marco Martin 2017-04-27 16:11:25 +02:00
parent d3ed006a1f
commit 57c35df0bb

View File

@ -37,6 +37,7 @@ T.ScrollBar {
implicitWidth: scrollbarSvg.elementSize("hint-scrollbar-size").width
implicitHeight: implicitWidth
colorGroup: PlasmaCore.ColorScope.colorGroup
visible: control.size < 1.0
prefix: control.horizontal ? "background-horizontal" : "background-vertical"
opacity: control.hovered ? 1 : 0
@ -52,6 +53,7 @@ T.ScrollBar {
implicitWidth: scrollbarSvg.elementSize("hint-scrollbar-size").width
implicitHeight: implicitWidth
colorGroup: PlasmaCore.ColorScope.colorGroup
visible: control.size < 1.0
prefix: control.hovered ? "mouseover-slider" : "slider"
}