RefactoringRope/ConfirmationDialog.py

changeset 87
1fbf5fdbe721
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
--- a/RefactoringRope/ConfirmationDialog.py	Mon May 12 19:08:18 2014 +0200
+++ b/RefactoringRope/ConfirmationDialog.py	Sun Jul 06 14:23:25 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton
+from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton
 
 from Ui_ConfirmationDialog import Ui_ConfirmationDialog
 
@@ -35,12 +35,12 @@
         self.__changes = changes
         
         self.description.setText(
-            self.trUtf8("Shall the refactoring <b>{0}</b> be done?")
+            self.tr("Shall the refactoring <b>{0}</b> be done?")
                 .format(Utilities.html_encode(self.__changes.description)))
         
         self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
         self.__previewButton = self.buttonBox.addButton(
-            self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
+            self.tr("Preview"), QDialogButtonBox.ActionRole)
         self.__previewButton.setDefault(True)
         
         msh = self.minimumSizeHint()

eric ide

mercurial