mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 08:19:02 +08:00
Fix showing tooltips for actionbuttons that have a tooltip text set
This commit is contained in:
parent
0f662da2c3
commit
ddbd843d91
@ -133,7 +133,18 @@ Button
|
|||||||
Cura.ToolTip
|
Cura.ToolTip
|
||||||
{
|
{
|
||||||
id: 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
|
BusyIndicator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user