Fix hover of the tooltip for the objectlist

Fixes #8290
This commit is contained in:
Jaime van Kessel 2020-09-01 10:50:04 +02:00
parent 2d1128f088
commit 72d31d2ae5
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -18,6 +18,18 @@ Button
checkable: true
hoverEnabled: true
onHoveredChanged:
{
if(hovered && (buttonTextMetrics.elidedText != buttonText.text || perObjectSettingsInfo.visible))
{
tooltip.show()
} else
{
tooltip.hide()
}
}
onClicked: Cura.SceneController.changeSelection(index)
background: Rectangle
@ -185,7 +197,6 @@ Button
{
id: tooltip
tooltipText: objectItemButton.text + perObjectSettingsInfo.tooltipText
visible: objectItemButton.hovered && (buttonTextMetrics.elidedText != buttonText.text || perObjectSettingsInfo.visible)
}
UM.I18nCatalog