Merge pull request #824 from ronpandolfi/develop
Fix for PySide2; QtCore.QPoint.__sub__ no longer works with tuples
This commit is contained in:
commit
51b3201564
@ -362,7 +362,7 @@ class GraphicsView(QtGui.QGraphicsView):
|
||||
def mouseMoveEvent(self, ev):
|
||||
if self.lastMousePos is None:
|
||||
self.lastMousePos = Point(ev.pos())
|
||||
delta = Point(ev.pos() - self.lastMousePos)
|
||||
delta = Point(ev.pos() - QtCore.QPoint(*self.lastMousePos))
|
||||
self.lastMousePos = Point(ev.pos())
|
||||
|
||||
QtGui.QGraphicsView.mouseMoveEvent(self, ev)
|
||||
|
Loading…
Reference in New Issue
Block a user