Templates/TemplateViewer.py

changeset 3656
441956d8fce5
parent 3621
15f23ed3f216
child 3670
f0cb7579c0b4
diff -r ffeb85cdc72d -r 441956d8fce5 Templates/TemplateViewer.py
--- a/Templates/TemplateViewer.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/Templates/TemplateViewer.py	Sun Jun 29 20:13:56 2014 +0200
@@ -13,8 +13,8 @@
 import os
 import re
 
-from PyQt4.QtCore import QFile, QFileInfo, QIODevice, Qt
-from PyQt4.QtGui import QTreeWidget, QDialog, QApplication, QMenu, \
+from PyQt5.QtCore import QFile, QFileInfo, QIODevice, Qt, QCoreApplication
+from PyQt5.QtWidgets import QTreeWidget, QDialog, QApplication, QMenu, \
     QTreeWidgetItem
 
 from E5Gui.E5Application import e5App
@@ -95,8 +95,9 @@
             if not quiet:
                 E5MessageBox.critical(
                     None,
-                    QApplication.translate("TemplateGroup", "Add Template"),
-                    QApplication.translate(
+                    QCoreApplication.translate("TemplateGroup",
+                                               "Add Template"),
+                    QCoreApplication.translate(
                         "TemplateGroup",
                         """<p>The group <b>{0}</b> already contains a"""
                         """ template named <b>{1}</b>.</p>""")

eric ide

mercurial