|
98 | 98 | tags_compatibility_id3,
|
99 | 99 | tags_compatibility_wave,
|
100 | 100 | )
|
101 |
| -from picard.ui.util import StandardButton |
102 | 101 |
|
103 | 102 |
|
104 | 103 | class ErrorOptionsPage(OptionsPage):
|
@@ -194,13 +193,10 @@ def __init__(self, default_page=None, parent=None):
|
194 | 193 | self.ui.reset_button = QtWidgets.QPushButton(_("Restore &Defaults"))
|
195 | 194 | self.ui.reset_button.setToolTip(_("Reset all settings for current option page"))
|
196 | 195 |
|
197 |
| - ok = StandardButton(StandardButton.OK) |
198 |
| - ok.setText(_("Make It So!")) |
| 196 | + ok = QtWidgets.QPushButton(_("Make It So!")) |
199 | 197 | self.ui.buttonbox.addButton(ok, QtWidgets.QDialogButtonBox.ButtonRole.AcceptRole)
|
200 |
| - self.ui.buttonbox.addButton( |
201 |
| - StandardButton(StandardButton.CANCEL), QtWidgets.QDialogButtonBox.ButtonRole.RejectRole |
202 |
| - ) |
203 |
| - self.ui.buttonbox.addButton(StandardButton(StandardButton.HELP), QtWidgets.QDialogButtonBox.ButtonRole.HelpRole) |
| 198 | + self.ui.buttonbox.addButton(QtWidgets.QDialogButtonBox.StandardButton.Cancel) |
| 199 | + self.ui.buttonbox.addButton(QtWidgets.QDialogButtonBox.StandardButton.Help) |
204 | 200 | self.ui.buttonbox.addButton(self.ui.reset_all_button, QtWidgets.QDialogButtonBox.ButtonRole.ActionRole)
|
205 | 201 | self.ui.buttonbox.addButton(self.ui.reset_button, QtWidgets.QDialogButtonBox.ButtonRole.ActionRole)
|
206 | 202 |
|
@@ -574,9 +570,7 @@ def __init__(self, option_group, parent=None, override_profiles=None, override_s
|
574 | 570 | self.option_group = option_group
|
575 | 571 | self.ui = Ui_AttachedProfilesDialog()
|
576 | 572 | self.ui.setupUi(self)
|
577 |
| - self.ui.buttonBox.addButton( |
578 |
| - StandardButton(StandardButton.CLOSE), QtWidgets.QDialogButtonBox.ButtonRole.RejectRole |
579 |
| - ) |
| 573 | + self.ui.buttonBox.addButton(QtWidgets.QDialogButtonBox.StandardButton.Close) |
580 | 574 | self.ui.buttonBox.rejected.connect(self.close_window)
|
581 | 575 |
|
582 | 576 | config = get_config()
|
|
0 commit comments