mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix showing tooltips for actionbuttons that have a tooltip text set
This commit is contained in:
parent
0f662da2c3
commit
ddbd843d91
1 changed files with 12 additions and 1 deletions
|
@ -133,7 +133,18 @@ Button
|
|||
Cura.ToolTip
|
||||
{
|
||||
id: tooltip
|
||||
visible: button.hovered && buttonTextMetrics.elidedText != buttonText.text
|
||||
visible:
|
||||
{
|
||||
if (!button.hovered)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (tooltipText == button.text)
|
||||
{
|
||||
return buttonTextMetrics.elidedText != buttonText.text;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
BusyIndicator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue