RefactoringRope/ChangesPreviewDialog.py

changeset 87
1fbf5fdbe721
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
diff -r f8e0131a4761 -r 1fbf5fdbe721 RefactoringRope/ChangesPreviewDialog.py
--- a/RefactoringRope/ChangesPreviewDialog.py	Mon May 12 19:08:18 2014 +0200
+++ b/RefactoringRope/ChangesPreviewDialog.py	Sun Jul 06 14:23:25 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