round positions

makes the text render correctly
This commit is contained in:
Marco Martin 2014-05-16 14:11:24 +02:00
parent 787b0d8cdf
commit a9417c2d11

View file

@ -69,11 +69,11 @@ KWin.Switcher {
delegate: Item { delegate: Item {
id: delegateItem id: delegateItem
width: thumbnailListView.delegateWidth width: thumbnailListView.delegateWidth
height: thumbnailItem.height + label.height + 30 height: Math.round(thumbnailItem.height + label.height + 30)
Item { Item {
id: thumbnailItem id: thumbnailItem
width: parent.width - hoverItem.margins.left - hoverItem.margins.right 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 { anchors {
top: parent.top top: parent.top
left: parent.left left: parent.left