eric6/Snapshot/SnapshotPreview.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7258:aff39db4dacc 7259:7c017076c12e
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()

eric ide

mercurial