eric7/WebBrowser/SafeBrowsing/SafeBrowsingLabel.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8318:962bce857696 8319:ea11a3948f40
45 Protected method to handle mouse release events. 45 Protected method to handle mouse release events.
46 46
47 @param evt reference to the mouse event (QMouseEvent) 47 @param evt reference to the mouse event (QMouseEvent)
48 """ 48 """
49 if evt.button() == Qt.MouseButton.LeftButton: 49 if evt.button() == Qt.MouseButton.LeftButton:
50 self.clicked.emit(evt.globalPos()) 50 self.clicked.emit(evt.globalPosition().toPoint())
51 else: 51 else:
52 super().mouseReleaseEvent(evt) 52 super().mouseReleaseEvent(evt)
53 53
54 def mouseDoubleClickEvent(self, evt): 54 def mouseDoubleClickEvent(self, evt):
55 """ 55 """
56 Protected method to handle mouse double click events. 56 Protected method to handle mouse double click events.
57 57
58 @param evt reference to the mouse event (QMouseEvent) 58 @param evt reference to the mouse event (QMouseEvent)
59 """ 59 """
60 if evt.button() == Qt.MouseButton.LeftButton: 60 if evt.button() == Qt.MouseButton.LeftButton:
61 self.clicked.emit(evt.globalPos()) 61 self.clicked.emit(evt.globalPosition().toPoint())
62 else: 62 else:
63 super().mouseDoubleClickEvent(evt) 63 super().mouseDoubleClickEvent(evt)
64 64
65 @pyqtSlot() 65 @pyqtSlot()
66 def __updateLabel(self): 66 def __updateLabel(self):

eric ide

mercurial