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 == "": |