MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / removeSuggestion

Method removeSuggestion

ElaWidgetTools/ElaSuggestBox.cpp:180–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 foreach (auto suggest, d->_suggestionVector)
179 {
180 if (suggest->getSuggestKey() == suggestKey)
181 {
182 d->_suggestionVector.removeOne(suggest);
183 suggest->deleteLater();
184 }
185 }
186}
187
188void ElaSuggestBox::removeSuggestion(int index)
189{
190 Q_D(ElaSuggestBox);
191 if (index >= d->_suggestionVector.count())
192 {
193 return;
194 }

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected