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

Method onLoadClicked

src/interface/fragment/PresetFragment.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void PresetFragment::onLoadClicked()
91{
92 auto* select = ui->files->selectionModel();
93 if (!select->hasSelection())
94 {
95 return;
96 }
97
98 auto indexes = select->selectedIndexes();
99 if(!PresetManager::instance().load(PresetManager::instance().presetModel()->data(indexes.first(), Qt::UserRole).toString()))
100 {
101 QMessageBox::warning(this, tr("Cannot load preset"), tr("Selected file does not exist anymore"), QMessageBox::Ok);
102 }
103}
104
105void PresetFragment::onNameFieldChanged(const QString &name)
106{

Callers

nothing calls this directly

Calls 3

presetModelMethod · 0.80
loadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected