eric6/Graphics/UMLGraphicsView.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6942
2602857055c5
child 7229
53054eb5b15a
diff -r 331569d44b19 -r 684261ef2165 eric6/Graphics/UMLGraphicsView.py
--- a/eric6/Graphics/UMLGraphicsView.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/Graphics/UMLGraphicsView.py	Sun Sep 01 19:40:53 2019 +0200
@@ -25,7 +25,6 @@
 import UI.PixmapCache
 
 import Preferences
-from Globals import qVersionTuple
 
 
 class UMLGraphicsView(E5GraphicsView):
@@ -602,10 +601,7 @@
         @param evt reference to the wheel event (QWheelEvent)
         """
         if evt.modifiers() & Qt.ControlModifier:
-            if qVersionTuple() >= (5, 0, 0):
-                delta = evt.angleDelta().y()
-            else:
-                delta = evt.delta()
+            delta = evt.angleDelta().y()
             if delta < 0:
                 self.zoomOut()
             elif delta > 0:

eric ide

mercurial