make sure pixelration is not 0

fix rendering

Change-Id: Idb5716ded802f4b6e68dabd82449053726977641
This commit is contained in:
Marco Martin 2015-01-14 17:06:02 +01:00
parent d96a8505d9
commit 5d62905a03
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ ProgressBarStyle {
readonly property string imagePath: "widgets/bar_meter_horizontal" readonly property string imagePath: "widgets/bar_meter_horizontal"
readonly property real implicitHeight: barSvg.preferredHeight * Math.floor(units.devicePixelRatio) readonly property real implicitHeight: barSvg.preferredHeight * Math.max(1, Math.floor(units.devicePixelRatio))
PlasmaCore.Svg { PlasmaCore.Svg {
id: barSvg id: barSvg

View File

@ -63,7 +63,7 @@ QtQuickControlStyle.SliderStyle {
id: groove id: groove
imagePath: "widgets/slider" imagePath: "widgets/slider"
prefix: "groove" prefix: "groove"
height: implicitHeight * Math.floor(units.devicePixelRatio) height: implicitHeight * Math.max(1, Math.floor(units.devicePixelRatio))
PlasmaCore.FrameSvgItem { PlasmaCore.FrameSvgItem {
id: highlight id: highlight