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