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

Method onSelectionChanged

src/interface/fragment/PresetFragment.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void PresetFragment::onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
50{
51 Q_UNUSED(deselected)
52
53 ui->load->setEnabled(!selected.empty());
54 ui->remove->setEnabled(!selected.empty());
55
56 if (selected.empty() || selected.indexes().empty())
57 {
58 return;
59 }
60
61 ui->presetName->setText(PresetManager::instance().presetModel()->data(selected.indexes().first(), Qt::UserRole).toString());
62}
63
64void PresetFragment::onAddClicked()
65{

Callers

nothing calls this directly

Calls 5

setEnabledMethod · 0.80
presetModelMethod · 0.80
emptyMethod · 0.45
setTextMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected