| 416 | } |
| 417 | |
| 418 | void SettingsEditor::handleButtonBoxClicked(QAbstractButton *button) |
| 419 | { |
| 420 | if (!button) |
| 421 | return; |
| 422 | |
| 423 | if (button == ui->buttonBox->button(QDialogButtonBox::Ok)) { |
| 424 | accept(); |
| 425 | return; |
| 426 | } |
| 427 | if (button == ui->buttonBox->button(QDialogButtonBox::Cancel)) { |
| 428 | reject(); |
| 429 | return; |
| 430 | } |
| 431 | if (button == ui->buttonBox->button(QDialogButtonBox::Apply)) { |
| 432 | const auto settings = this->settings(); |
| 433 | manager_.applySettings(settings); |
| 434 | wasPortable_ = ui->portable->isChecked(); |
| 435 | updateState(); |
| 436 | return; |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | void SettingsEditor::updateResultFont() |
| 441 | { |
nothing calls this directly
no test coverage detected