From 944c1549aefb1d2b5ce760726293be54f5cce463 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 2 May 2014 15:43:55 +0200 Subject: [PATCH] avoid half pixels --- src/declarativeimports/plasmacomponents/qml/Button.qml | 2 +- src/declarativeimports/plasmacomponents/qml/ProgressBar.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/Button.qml b/src/declarativeimports/plasmacomponents/qml/Button.qml index f2c0afea7..94799e94c 100644 --- a/src/declarativeimports/plasmacomponents/qml/Button.qml +++ b/src/declarativeimports/plasmacomponents/qml/Button.qml @@ -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 diff --git a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml index 9fb19e165..b85c100f3 100644 --- a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml @@ -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 {