MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / onDefaultDeviceSelected

Method onDefaultDeviceSelected

src/interface/fragment/SettingsFragment.cpp:311–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void SettingsFragment::onDefaultDeviceSelected()
312{
313 if (_lockslot)
314 {
315 return;
316 }
317
318 ui->dev_select->setDisabled(ui->dev_mode_auto->isChecked());
319 AppConfig::instance().set(AppConfig::AudioOutputUseDefault, ui->dev_mode_auto->isChecked());
320
321 if (!ui->dev_mode_auto->isChecked())
322 {
323 if (ui->dev_select->currentData() == "...")
324 {
325 return;
326 }
327
328 AppConfig::instance().set(AppConfig::AudioOutputDevice, ui->dev_select->currentData());
329 }
330}
331
332void SettingsFragment::onTreeItemSelected(QTreeWidgetItem *cur, QTreeWidgetItem *prev)
333{

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected