eric6/IconEditor/IconEditorWindow.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/IconEditor/IconEditorWindow.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/IconEditor/IconEditorWindow.py	Sun Sep 01 19:40:53 2019 +0200
@@ -28,7 +28,6 @@
 import UI.Config
 
 import Preferences
-from Globals import qVersionTuple
 
 
 class IconEditorWindow(E5MainWindow):
@@ -1353,10 +1352,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