avoid half pixels

This commit is contained in:
Marco Martin 2014-05-02 15:43:55 +02:00
parent cee9c928e3
commit 944c1549ae
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ Item {
}
}
implicitHeight: Math.max(theme.mSize(theme.defaultFont).height*1.6, minimumHeight)
implicitHeight: Math.floor(Math.max(theme.mSize(theme.defaultFont).height*1.6, minimumHeight))
// TODO: needs to define if there will be specific graphics for
// disabled buttons

View File

@ -61,8 +61,8 @@ Item {
*/
property int orientation: Qt.Horizontal
width: units.gridUnit * (background._isVertical ? 1.6 : 10)
height: units.gridUnit * (background._isVertical ? 10 : 1.6)
width: Math.floor(units.gridUnit * (background._isVertical ? 1.6 : 10))
height: Math.floor(units.gridUnit * (background._isVertical ? 10 : 1.6))
opacity: enabled ? 1.0 : 0.5
PlasmaComponents.RangeModel {