fix problem with older pyqt version

This commit is contained in:
Martin Baeuml
2011-07-07 09:04:51 +02:00
parent 4fe9c9a62b
commit 662135a24d
+1 -1
View File
@@ -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()