Browse Source

Fix hover of the tooltip for the objectlist

Fixes #8290
Jaime van Kessel 4 years ago
parent
commit
72d31d2ae5
1 changed files with 12 additions and 1 deletions
  1. 12 1
      resources/qml/ObjectItemButton.qml

+ 12 - 1
resources/qml/ObjectItemButton.qml

@@ -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