RefactoringRope/ChangesPreviewDialog.py

branch
eric5
changeset 86
3339c75dc777
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
--- a/RefactoringRope/ChangesPreviewDialog.py	Sun Jul 06 13:27:49 2014 +0200
+++ b/RefactoringRope/ChangesPreviewDialog.py	Sun Jul 06 14:17:24 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import Qt, pyqtSlot
-from PyQt4.QtGui import QDialogButtonBox, QListWidgetItem
+from PyQt5.QtCore import Qt, pyqtSlot
+from PyQt5.QtWidgets import QDialogButtonBox, QListWidgetItem
 
 from PreviewDialogBase import PreviewDialogBase
 
@@ -32,7 +32,7 @@
         PreviewDialogBase.__init__(self, parent)
         
         self.buttonBox.addButton(
-            self.trUtf8("&Apply Changes"), QDialogButtonBox.AcceptRole)
+            self.tr("&Apply Changes"), QDialogButtonBox.AcceptRole)
         self.buttonBox.addButton(QDialogButtonBox.Cancel)
         
         self.description.setText(changes.description)
@@ -41,7 +41,7 @@
             try:
                 changeDescription = change.get_description()
             except AttributeError:
-                changeDescription = self.trUtf8("No changes available.")
+                changeDescription = self.tr("No changes available.")
             itm.setData(ChangesPreviewDialog.ChangeRole,
                         changeDescription)
         if self.changesList.count():

eric ide

mercurial