68 """ |
68 """ |
69 Protected method to handle mouse moves. |
69 Protected method to handle mouse moves. |
70 |
70 |
71 @param evt mouse move event (QMouseEvent) |
71 @param evt mouse move event (QMouseEvent) |
72 """ |
72 """ |
73 if self.__mouseClickPoint != QPoint(0, 0) and \ |
73 if ( |
74 (evt.pos() - self.__mouseClickPoint).manhattanLength() > \ |
74 self.__mouseClickPoint != QPoint(0, 0) and |
75 QApplication.startDragDistance(): |
75 (evt.pos() - self.__mouseClickPoint).manhattanLength() > |
|
76 QApplication.startDragDistance() |
|
77 ): |
76 self.__mouseClickPoint = QPoint(0, 0) |
78 self.__mouseClickPoint = QPoint(0, 0) |
77 self.startDrag.emit() |
79 self.startDrag.emit() |