eric6/WebBrowser/UrlBar/FavIconLabel.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
20 """ 20 """
21 Constructor 21 Constructor
22 22
23 @param parent reference to the parent widget (QWidget) 23 @param parent reference to the parent widget (QWidget)
24 """ 24 """
25 super(FavIconLabel, self).__init__(parent) 25 super().__init__(parent)
26 26
27 self.__browser = None 27 self.__browser = None
28 self.__dragStartPos = QPoint() 28 self.__dragStartPos = QPoint()
29 29
30 self.setFocusPolicy(Qt.FocusPolicy.NoFocus) 30 self.setFocusPolicy(Qt.FocusPolicy.NoFocus)
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

eric ide

mercurial