mirror of
https://github.com/wassname/sloth.git
synced 2026-09-09 11:35:32 +08:00
fix problem with older pyqt version
This commit is contained in:
@@ -90,7 +90,7 @@ class GraphicsView(QGraphicsView):
|
||||
QGraphicsView.resizeEvent(self, event)
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
if event.button() & Qt.MiddleButton != 0:
|
||||
if event.button() & Qt.MidButton != 0:
|
||||
self._pan = True
|
||||
self._panStartX = event.x()
|
||||
self._panStartY = event.y()
|
||||
|
||||
Reference in New Issue
Block a user