Fix scaling in ProgressBar and Slider

REVIEW: 121417
This commit is contained in:
Kai Uwe Broulik 2014-12-09 22:46:57 +01:00
parent bf99d9c03c
commit 23b590b90c
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,7 @@ ProgressBarStyle {
PlasmaCore.FrameSvgItem {
anchors.centerIn: parent
width: parent.width
height: implicitHeight
height: style.implicitHeight
imagePath: style.imagePath
prefix: "bar-inactive"
}
@ -62,7 +62,7 @@ ProgressBarStyle {
prefix: "bar-active"
width: control.indeterminate ? units.gridUnit * 2 : Math.max(margins.left + margins.right, parent.width)
height: implicitHeight
height: style.implicitHeight
visible: control.indeterminate || currentProgress > 0
SequentialAnimation {

View File

@ -36,6 +36,7 @@ QtQuickControlStyle.SliderStyle {
PlasmaCore.Svg {
id: grooveSvg
imagePath: "widgets/slider"
}
handle: Item {
width: handle.naturalSize.width
@ -62,6 +63,8 @@ QtQuickControlStyle.SliderStyle {
id: groove
imagePath: "widgets/slider"
prefix: "groove"
height: implicitHeight * Math.floor(units.devicePixelRatio)
PlasmaCore.FrameSvgItem {
id: highlight
imagePath: "widgets/slider"