QScintilla/Editor.py

changeset 5736
000ea446ff4b
parent 5733
aed3e558407f
child 5752
1860eca908e4
child 5881
13381dbbb81e
--- a/QScintilla/Editor.py	Sat May 13 13:46:05 2017 +0200
+++ b/QScintilla/Editor.py	Sat May 13 16:32:54 2017 +0200
@@ -18,7 +18,7 @@
 import difflib
 
 from PyQt5.QtCore import QDir, QTimer, QModelIndex, QFileInfo, pyqtSignal, \
-    pyqtSlot, QCryptographicHash, QEvent, QDateTime, QRegExp, Qt, qVersion
+    pyqtSlot, QCryptographicHash, QEvent, QDateTime, QRegExp, Qt
 from PyQt5.QtGui import QCursor, QPalette, QFont, QPixmap, QPainter
 from PyQt5.QtWidgets import QLineEdit, QActionGroup, QDialog, QInputDialog, \
     QApplication, QMenu
@@ -34,6 +34,7 @@
 import Preferences
 import Utilities
 from Utilities import MouseUtilities
+from Globals import qVersionTuple
 
 import UI.PixmapCache
 
@@ -6531,7 +6532,7 @@
         
         @param evt reference to the wheel event (QWheelEvent)
         """
-        if qVersion() >= "5.0.0":
+        if qVersionTuple() >= (5, 0, 0):
             delta = evt.angleDelta().y()
         else:
             delta = evt.delta()

eric ide

mercurial