--- a/RefactoringRope/RenameDialog.py Mon May 12 19:08:18 2014 +0200 +++ b/RefactoringRope/RenameDialog.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 QDialogButtonBox, QAbstractButton +from PyQt5.QtCore import pyqtSlot +from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton from E5Gui.E5Application import e5App from E5Gui import E5MessageBox @@ -49,7 +49,7 @@ self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) self.__okButton.setEnabled(False) self.__previewButton = self.buttonBox.addButton( - self.trUtf8("Preview"), QDialogButtonBox.ActionRole) + self.tr("Preview"), QDialogButtonBox.ActionRole) self.__previewButton.setDefault(True) msh = self.minimumSizeHint() @@ -105,8 +105,8 @@ aw.setSelection(sline, sindex, eline, eindex) ans = E5MessageBox.yesNo( self, - self.trUtf8("Rename"), - self.trUtf8("""<p>Is the highlighted code a match?</p>"""), + self.tr("Rename"), + self.tr("""<p>Is the highlighted code a match?</p>"""), yesDefault=True) aw.setCursorPosition(cline, cindex) aw.ensureCursorVisible()