eric6/QScintilla/Editor.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 7192
a22eee00b052
child 7202
d2f2a1fe0129
--- a/eric6/QScintilla/Editor.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/QScintilla/Editor.py	Sun Sep 01 19:40:53 2019 +0200
@@ -30,7 +30,6 @@
 import Preferences
 import Utilities
 from Utilities import MouseUtilities
-from Globals import qVersionTuple
 
 import UI.PixmapCache
 
@@ -6812,10 +6811,7 @@
         
         @param evt reference to the wheel event (QWheelEvent)
         """
-        if qVersionTuple() >= (5, 0, 0):
-            delta = evt.angleDelta().y()
-        else:
-            delta = evt.delta()
+        delta = evt.angleDelta().y()
         if evt.modifiers() & Qt.ControlModifier:
             if delta < 0:
                 self.zoomOut()

eric ide

mercurial