65 |
65 |
66 @param evt reference to the mouse event (QMouseEvent) |
66 @param evt reference to the mouse event (QMouseEvent) |
67 """ |
67 """ |
68 if evt.button() == Qt.MouseButton.LeftButton: |
68 if evt.button() == Qt.MouseButton.LeftButton: |
69 self.__dragStartPos = evt.pos() |
69 self.__dragStartPos = evt.pos() |
70 super(FavIconLabel, self).mousePressEvent(evt) |
70 super().mousePressEvent(evt) |
71 |
71 |
72 def mouseReleaseEvent(self, evt): |
72 def mouseReleaseEvent(self, evt): |
73 """ |
73 """ |
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.globalPos()) |
80 super(FavIconLabel, self).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. |
85 |
85 |