eric6/QScintilla/Shell.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6987
3371a03ed0a7
child 7229
53054eb5b15a
diff -r 331569d44b19 -r 684261ef2165 eric6/QScintilla/Shell.py
--- a/eric6/QScintilla/Shell.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/QScintilla/Shell.py	Sun Sep 01 19:40:53 2019 +0200
@@ -30,7 +30,6 @@
 
 import Preferences
 import Utilities
-from Globals import qVersionTuple
 
 import UI.PixmapCache
 
@@ -1217,10 +1216,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