be aware of dpi changes

BUG:338093
This commit is contained in:
Marco Martin 2014-08-07 17:05:55 +02:00
parent 419d97cfe0
commit 1585c9b26a

View File

@ -141,8 +141,8 @@ Item {
// Plasma API
property bool animated: units.longDuration > 0
property real handleWidth: contents.isVertical ? grooveSvg.elementSize("vertical-slider-handle").width : grooveSvg.elementSize("horizontal-slider-handle").width
property real handleHeight: contents.isVertical ? grooveSvg.elementSize("vertical-slider-handle").height : grooveSvg.elementSize("horizontal-slider-handle").height
property real handleWidth: handle.naturalSize.width
property real handleHeight: handle.naturalSize.height
// Convenience API
property bool isVertical: orientation == Qt.Vertical