mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
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
This commit is contained in:
parent
cfe395460f
commit
06b0d12844
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue