Browse Source

Fix for tooltip

Problem was that the mouse events were not properly propagated to the underlying mouse area. Fixed by placing the MouseArea on top of the content (instead of under) and allowing the mouse events to propagate through the mouse area.

CURA-9219
c.lamboo 2 years ago
parent
commit
482d21c642
1 changed files with 6 additions and 0 deletions
  1. 6 0
      resources/qml/TableView.qml

+ 6 - 0
resources/qml/TableView.qml

@@ -171,6 +171,12 @@ Item
 
                 acceptedButtons: Qt.LeftButton
                 text: (cellTextMetrics.elidedText == cellContent.text) ? "" : cellContent.text //Show full text in tooltip if it was elided.
+            }
+
+            MouseArea
+            {
+                anchors.fill: parent
+                propagateComposedEvents: true
                 onClicked:
                 {
                     if(tableBase.allowSelection)