74 Protected method to handle mouse release events. |
74 Protected method to handle mouse release events. |
75 |
75 |
76 @param evt reference to the mouse event (QMouseEvent) |
76 @param evt reference to the mouse event (QMouseEvent) |
77 """ |
77 """ |
78 if evt.button() == Qt.MouseButton.LeftButton: |
78 if evt.button() == Qt.MouseButton.LeftButton: |
79 self.__showPopup(evt.globalPos()) |
79 self.__showPopup(evt.globalPosition().toPoint()) |
80 super().mouseReleaseEvent(evt) |
80 super().mouseReleaseEvent(evt) |
81 |
81 |
82 def mouseMoveEvent(self, evt): |
82 def mouseMoveEvent(self, evt): |
83 """ |
83 """ |
84 Protected method to handle mouse move events. |
84 Protected method to handle mouse move events. |