40 |
40 |
41 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
41 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
42 self.__previewButton = self.buttonBox.addButton( |
42 self.__previewButton = self.buttonBox.addButton( |
43 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
43 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) |
44 self.__previewButton.setDefault(True) |
44 self.__previewButton.setDefault(True) |
|
45 |
|
46 msh = self.minimumSizeHint() |
|
47 self.resize(max(self.width(), msh.width()), msh.height()) |
45 |
48 |
46 @pyqtSlot(QAbstractButton) |
49 @pyqtSlot(QAbstractButton) |
47 def on_buttonBox_clicked(self, button): |
50 def on_buttonBox_clicked(self, button): |
48 """ |
51 """ |
49 Private slot to act on the button pressed. |
52 Private slot to act on the button pressed. |