From 06b0d12844cfad664942f050f6df58d785a9873d Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Mon, 21 Jun 2021 13:24:22 +0200 Subject: [PATCH] Don't draw tooltip background if height is 0 In some buttons (specifically, the "Manage printers" button), the tooltip arrow is being drawn even though the tooltip text is empty. This commit fixes that by making sure that the background rectangle (PointingRectangle) of the tooltip is not be visible if the height of the tooltip is 0. CURA-8334 --- resources/qml/ToolTip.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/qml/ToolTip.qml b/resources/qml/ToolTip.qml index b8873439f1..3157f81d89 100644 --- a/resources/qml/ToolTip.qml +++ b/resources/qml/ToolTip.qml @@ -59,6 +59,7 @@ ToolTip color: UM.Theme.getColor("tooltip") target: Qt.point(targetPoint.x - tooltip.x, targetPoint.y - tooltip.y) arrowSize: UM.Theme.getSize("default_arrow").width + visible: tooltip.height != 0 } contentItem: Label