MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / handleButtonBoxClicked

Method handleButtonBoxClicked

src/settingseditor.cpp:418–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void 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
440void SettingsEditor::updateResultFont()
441{

Callers

nothing calls this directly

Calls 2

settingsMethod · 0.95
applySettingsMethod · 0.80

Tested by

no test coverage detected