55 |
55 |
56 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
56 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
57 self.__previewButton = self.buttonBox.addButton( |
57 self.__previewButton = self.buttonBox.addButton( |
58 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
58 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
59 self.__previewButton.setDefault(True) |
59 self.__previewButton.setDefault(True) |
|
60 |
|
61 msh = self.minimumSizeHint() |
|
62 self.resize(max(self.width(), msh.width()), msh.height()) |
60 |
63 |
61 @pyqtSlot(QAbstractButton) |
64 @pyqtSlot(QAbstractButton) |
62 def on_buttonBox_clicked(self, button): |
65 def on_buttonBox_clicked(self, button): |
63 """ |
66 """ |
64 Private slot to act on the button pressed. |
67 Private slot to act on the button pressed. |