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

Method removeRule

src/data/PresetManager.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void PresetManager::removeRule(const QString &deviceId, const QString &routeId)
191{
192 for(int i = 0; i < _rules.count(); i++) {
193 if(_rules[i].deviceId == deviceId && _rules[i].routeId == routeId) {
194 _rules.removeAt(i);
195 break;
196 }
197 }
198 saveRules();
199}
200
201QVector<PresetRule> PresetManager::rules() const
202{

Callers 2

deletePresetRuleMethod · 0.80
deletePresetRuleMethod · 0.80

Calls 2

countMethod · 0.80
removeAtMethod · 0.45

Tested by

no test coverage detected