RefactoringRope/InlineDialog.py

branch
eric5
changeset 86
3339c75dc777
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
--- a/RefactoringRope/InlineDialog.py	Sun Jul 06 13:27:49 2014 +0200
+++ b/RefactoringRope/InlineDialog.py	Sun Jul 06 14:17:24 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QDialogButtonBox, QAbstractButton
+from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton
 
 import rope.refactor.inline
 
@@ -52,12 +52,12 @@
         self.resize(500, 20)
 
         self.description.setText(
-            self.trUtf8("Inlining occurrences of <b>{0}</b> (type {1}).")
+            self.tr("Inlining occurrences of <b>{0}</b> (type {1}).")
                 .format(self.__inliner.name, self.__inliner.get_kind()))
         
         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