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

Method onRemoveClicked

src/interface/dialog/PresetRuleDialog.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void PresetRuleDialog::onRemoveClicked()
94{
95 auto* select = ui->ruleTable->selectionModel();
96 if (select->hasSelection())
97 {
98 auto indexes = select->selectedRows();
99 for(int i = indexes.count(); i > 0; i--)
100 {
101 ruleModel->removeRow(indexes.at(i-1).row(), QModelIndex());
102 }
103 }
104}
105
106void PresetRuleDialog::onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
107{

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
removeRowMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected