ignore wheel events in GraphicsView if mouse disabled

- this allows parent dialogs to receive these events
if they need to
This commit is contained in:
Richard Bryan 2015-08-25 10:06:39 -04:00
parent 1036edf618
commit f49c179275

View File

@ -324,6 +324,7 @@ class GraphicsView(QtGui.QGraphicsView):
def wheelEvent(self, ev):
QtGui.QGraphicsView.wheelEvent(self, ev)
if not self.mouseEnabled:
ev.ignore()
return
sc = 1.001 ** ev.delta()
#self.scale *= sc