Plugins/PluginEricdoc.py

changeset 3656
441956d8fce5
parent 3621
15f23ed3f216
child 3670
f0cb7579c0b4
diff -r ffeb85cdc72d -r 441956d8fce5 Plugins/PluginEricdoc.py
--- a/Plugins/PluginEricdoc.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/Plugins/PluginEricdoc.py	Sun Jun 29 20:13:56 2014 +0200
@@ -11,8 +11,8 @@
 
 import os
 
-from PyQt4.QtCore import QObject
-from PyQt4.QtGui import QDialog, QApplication
+from PyQt5.QtCore import QObject, QCoreApplication
+from PyQt5.QtWidgets import QDialog
 
 from E5Gui.E5Application import e5App
 
@@ -56,7 +56,7 @@
         exe = os.path.join(getConfig("bindir"), exe + '.bat')
     dataList.append({
         "programEntry": True,
-        "header": QApplication.translate(
+        "header": QCoreApplication.translate(
             "EricdocPlugin", "Eric5 Documentation Generator"),
         "exe": exe,
         "versionCommand": '--version',
@@ -72,7 +72,7 @@
         exe += '.exe'
     dataList.append({
         "programEntry": True,
-        "header": QApplication.translate(
+        "header": QCoreApplication.translate(
             "EricdocPlugin", "Qt Help Tools"),
         "exe": exe,
         "versionCommand": '-v',
@@ -88,7 +88,7 @@
         exe += '.exe'
     dataList.append({
         "programEntry": True,
-        "header": QApplication.translate(
+        "header": QCoreApplication.translate(
             "EricdocPlugin", "Qt Help Tools"),
         "exe": exe,
         "versionCommand": '-v',

eric ide

mercurial