QScintilla/KeySequenceTranslator.py

changeset 5736
000ea446ff4b
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
diff -r f606dbe20be6 -r 000ea446ff4b QScintilla/KeySequenceTranslator.py
--- a/QScintilla/KeySequenceTranslator.py	Sat May 13 13:46:05 2017 +0200
+++ b/QScintilla/KeySequenceTranslator.py	Sat May 13 16:32:54 2017 +0200
@@ -10,10 +10,11 @@
 
 from __future__ import unicode_literals
 
-from PyQt5.QtCore import qVersion
 from PyQt5.QtGui import QKeySequence
 from PyQt5.Qsci import QsciScintilla
 
+from Globals import qVersionTuple
+
 __all__ = ["s2qTranslate"]
 
 Scintilla2QKeySequence = {
@@ -108,10 +109,10 @@
     QsciScintilla.SCI_LOWERCASE: QKeySequence.UnknownKey,
     QsciScintilla.SCI_UPPERCASE: QKeySequence.UnknownKey,
 }
-if qVersion() >= "5.2.0":
+if qVersionTuple() >= (5, 2, 0):
     Scintilla2QKeySequence[QsciScintilla.SCI_LINEDELETE] = \
         QKeySequence.DeleteCompleteLine,
-if qVersion() >= "5.5.0":
+if qVersionTuple() >= (5, 5, 0):
     Scintilla2QKeySequence[QsciScintilla.SCI_DELETEBACK] = \
         QKeySequence.Backspace
 

eric ide

mercurial