84 """ |
84 """ |
85 Protected method to handle mouse move events. |
85 Protected method to handle mouse move events. |
86 |
86 |
87 @param evt reference to the mouse event (QMouseEvent) |
87 @param evt reference to the mouse event (QMouseEvent) |
88 """ |
88 """ |
89 if evt.button() == Qt.LeftButton and \ |
89 if ( |
90 (evt.pos() - self.__dragStartPos).manhattanLength() > \ |
90 evt.button() == Qt.LeftButton and |
91 QApplication.startDragDistance() and \ |
91 ((evt.pos() - self.__dragStartPos).manhattanLength() > |
92 self.__browser is not None: |
92 QApplication.startDragDistance()) and |
|
93 self.__browser is not None |
|
94 ): |
93 drag = QDrag(self) |
95 drag = QDrag(self) |
94 mimeData = QMimeData() |
96 mimeData = QMimeData() |
95 title = self.__browser.title() |
97 title = self.__browser.title() |
96 if title == "": |
98 if title == "": |
97 title = str(self.__browser.url().toEncoded(), encoding="utf-8") |
99 title = str(self.__browser.url().toEncoded(), encoding="utf-8") |