MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / onTrayEditorReset

Method onTrayEditorReset

src/interface/fragment/SettingsFragment.cpp:429–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void SettingsFragment::onTrayEditorReset()
430{
431 QMessageBox::StandardButton reply = QMessageBox::question(this, tr("Warning"), tr("Do you really want to restore the default menu layout?"),
432 QMessageBox::Yes | QMessageBox::No);
433
434 if (reply == QMessageBox::Yes)
435 {
436 ui->menu_edit->setTargetMenu(_trayIcon->buildDefaultActions());
437 _trayIcon->updateTrayMenu(ui->menu_edit->exportMenu());
438 }
439}
440
441void SettingsFragment::onEqualizerHandlesToggled()
442{

Callers

nothing calls this directly

Calls 4

setTargetMenuMethod · 0.80
buildDefaultActionsMethod · 0.80
updateTrayMenuMethod · 0.80
exportMenuMethod · 0.80

Tested by

no test coverage detected