RefactoringRope/InlineDialog.py

branch
eric5
changeset 88
e71619898d0f
parent 86
3339c75dc777
equal deleted inserted replaced
86:3339c75dc777 88:e71619898d0f
7 Module implementing the Inline dialog. 7 Module implementing the Inline dialog.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
13 from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton 13 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton
14 14
15 import rope.refactor.inline 15 import rope.refactor.inline
16 16
17 from Ui_InlineDialog import Ui_InlineDialog 17 from Ui_InlineDialog import Ui_InlineDialog
18 from RefactoringDialogBase import RefactoringDialogBase 18 from RefactoringDialogBase import RefactoringDialogBase
50 self.currentCheckBox.setVisible(True) 50 self.currentCheckBox.setVisible(True)
51 self.hierarchyCheckBox.setVisible(False) 51 self.hierarchyCheckBox.setVisible(False)
52 self.resize(500, 20) 52 self.resize(500, 20)
53 53
54 self.description.setText( 54 self.description.setText(
55 self.tr("Inlining occurrences of <b>{0}</b> (type {1}).") 55 self.trUtf8("Inlining occurrences of <b>{0}</b> (type {1}).")
56 .format(self.__inliner.name, self.__inliner.get_kind())) 56 .format(self.__inliner.name, self.__inliner.get_kind()))
57 57
58 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 58 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
59 self.__previewButton = self.buttonBox.addButton( 59 self.__previewButton = self.buttonBox.addButton(
60 self.tr("Preview"), QDialogButtonBox.ActionRole) 60 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
61 self.__previewButton.setDefault(True) 61 self.__previewButton.setDefault(True)
62 62
63 msh = self.minimumSizeHint() 63 msh = self.minimumSizeHint()
64 self.resize(max(self.width(), msh.width()), msh.height()) 64 self.resize(max(self.width(), msh.width()), msh.height())
65 65

eric ide

mercurial