eric7/Snapshot/SnapshotPreview.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8365:cde9bde830ea 8366:2a9f5153c438
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()

eric ide

mercurial