RefactoringRope/RenameDialog.py

changeset 74
0973b175e2ad
parent 62
1077db8d0589
child 76
936b2a98fe4e
equal deleted inserted replaced
73:f712afb572c7 74:0973b175e2ad
47 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 47 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
48 self.__okButton.setEnabled(False) 48 self.__okButton.setEnabled(False)
49 self.__previewButton = self.buttonBox.addButton( 49 self.__previewButton = self.buttonBox.addButton(
50 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) 50 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
51 self.__previewButton.setDefault(True) 51 self.__previewButton.setDefault(True)
52
53 msh = self.minimumSizeHint()
54 self.resize(max(self.width(), msh.width()), msh.height())
52 55
53 @pyqtSlot(str) 56 @pyqtSlot(str)
54 def on_newNameEdit_textChanged(self, text): 57 def on_newNameEdit_textChanged(self, text):
55 """ 58 """
56 Private slot to react to changes of the new name. 59 Private slot to react to changes of the new name.

eric ide

mercurial