eric7/WebBrowser/UrlBar/FavIconLabel.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8319
ea11a3948f40
child 8881
54e42bc2437a
equal deleted inserted replaced
8365:cde9bde830ea 8366:2a9f5153c438
84 Protected method to handle mouse move events. 84 Protected method to handle mouse move events.
85 85
86 @param evt reference to the mouse event (QMouseEvent) 86 @param evt reference to the mouse event (QMouseEvent)
87 """ 87 """
88 if ( 88 if (
89 evt.button() == Qt.MouseButton.LeftButton and 89 evt.button() == Qt.MouseButton.LeftButton and (
90 ((evt.position().toPoint() - self.__dragStartPos).manhattanLength() > 90 (evt.position().toPoint() -
91 QApplication.startDragDistance()) and 91 self.__dragStartPos).manhattanLength() >
92 self.__browser is not None 92 QApplication.startDragDistance()
93 ) and self.__browser is not None
93 ): 94 ):
94 drag = QDrag(self) 95 drag = QDrag(self)
95 mimeData = QMimeData() 96 mimeData = QMimeData()
96 title = self.__browser.title() 97 title = self.__browser.title()
97 if title == "": 98 if title == "":

eric ide

mercurial