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