Skip to content
Permalink
Browse files

[processing] fix modeleter mouse wheel zoom under qt5

  • Loading branch information
nirvn committed Oct 22, 2016
1 parent 3cc9b5d commit 8ee25cdfa8addc881f651f2ab93d4c01c5337e7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/ModelerDialog.py
@@ -111,7 +111,7 @@ def _dragMoveEvent(event):
def _wheelEvent(event):
self.view.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)
factor = 1.05
if event.delta() > 0:
if event.angleDelta().y() > 0:
factor = 1 / factor
self.view.scale(factor, factor)
self.repaintModel()

0 comments on commit 8ee25cd

Please sign in to comment.
You can’t perform that action at this time.