From a9417c2d118f1417f01022d165d67a28c94a438b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 16 May 2014 14:11:24 +0200 Subject: [PATCH] round positions makes the text render correctly --- tabbox/qml/clients/sidebar/contents/ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabbox/qml/clients/sidebar/contents/ui/main.qml b/tabbox/qml/clients/sidebar/contents/ui/main.qml index 003a278206..85e0169475 100644 --- a/tabbox/qml/clients/sidebar/contents/ui/main.qml +++ b/tabbox/qml/clients/sidebar/contents/ui/main.qml @@ -69,11 +69,11 @@ KWin.Switcher { delegate: Item { id: delegateItem width: thumbnailListView.delegateWidth - height: thumbnailItem.height + label.height + 30 + height: Math.round(thumbnailItem.height + label.height + 30) Item { id: thumbnailItem width: parent.width - hoverItem.margins.left - hoverItem.margins.right - height: thumbnailListView.delegateWidth*(1.0/screenFactor) - hoverItem.margins.top + height: Math.round(thumbnailListView.delegateWidth*(1.0/screenFactor) - hoverItem.margins.top) anchors { top: parent.top left: parent.left