QScintilla/Exporters/__init__.py

changeset 3656
441956d8fce5
parent 3178
f25fc1364c88
child 4021
195a471c327b
--- a/QScintilla/Exporters/__init__.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/QScintilla/Exporters/__init__.py	Sun Jun 29 20:13:56 2014 +0200
@@ -9,7 +9,7 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtGui import QApplication
+from PyQt5.QtCore import QCoreApplication
 
 
 def getSupportedFormats():
@@ -21,11 +21,11 @@
         for the exporters (string)
     """
     supportedFormats = {
-        "HTML": QApplication.translate('Exporters', "HTML"),
-        "RTF": QApplication.translate('Exporters', "RTF"),
-        "PDF": QApplication.translate('Exporters', "PDF"),
-        "TeX": QApplication.translate('Exporters', "TeX"),
-        "ODT": QApplication.translate('Exporters', "ODT"),
+        "HTML": QCoreApplication.translate('Exporters', "HTML"),
+        "RTF": QCoreApplication.translate('Exporters', "RTF"),
+        "PDF": QCoreApplication.translate('Exporters', "PDF"),
+        "TeX": QCoreApplication.translate('Exporters', "TeX"),
+        "ODT": QCoreApplication.translate('Exporters', "ODT"),
     }
     
     return supportedFormats

eric ide

mercurial