[ToolTip] Round position

Otherwise screws up font rendering
This commit is contained in:
Kai Uwe Broulik 2020-01-03 19:36:10 +01:00
parent 66122410a1
commit 886fd953fd

View File

@ -26,7 +26,7 @@ import org.kde.kirigami 2.5 as Kirigami
T.ToolTip {
id: control
x: parent ? (parent.width - implicitWidth) / 2 : 0
x: parent ? Math.round((parent.width - implicitWidth) / 2) : 0
y: -implicitHeight - 3
visible: parent && (Kirigami.Settings.tabletMode ? parent.pressed : parent.hovered)