Preferences/PreferencesLexer.py

changeset 3656
441956d8fce5
parent 3591
2f2a4a76dd22
child 3658
edcfadf0152d
--- a/Preferences/PreferencesLexer.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/Preferences/PreferencesLexer.py	Sun Jun 29 20:13:56 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtGui import QColor, QFont, QApplication
-from PyQt4.Qsci import QsciLexer
+from PyQt5.QtGui import QColor, QFont, QCoreApplication
+from PyQt5.Qsci import QsciLexer
 
 import Preferences
 import Globals
@@ -24,7 +24,7 @@
         """
         Constructor
         """
-        self._errorMessage = QApplication.translate(
+        self._errorMessage = QCoreApplication.translate(
             "PreferencesLexerError",
             "Unspecific PreferencesLexer error.")
         
@@ -56,7 +56,7 @@
         @param language lexer language (string)
         """
         PreferencesLexerError.__init__(self)
-        self._errorMessage = QApplication.translate(
+        self._errorMessage = QCoreApplication.translate(
             "PreferencesLexerError",
             'Unsupported Lexer Language: {0}').format(language)
 

eric ide

mercurial