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:
parent
1036edf618
commit
f49c179275
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user