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. |