MCPcopy Create free account
hub / github.com/KDE/kdevelop / setSelection

Method setSelection

plugins/clangtidy/config/checksetselectionlistmodel.cpp:307–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void CheckSetSelectionListModel::setSelection(int row, const QString& selection)
308{
309 if ((row < 0) || m_checkSetSelections.count() <= row) {
310 return;
311 }
312
313 auto& checkSetSelection = m_checkSetSelections[row];
314 if (checkSetSelection.selectionAsString() == selection) {
315 return;
316 }
317
318 checkSetSelection.setSelection(selection);
319
320 const QString id = checkSetSelection.id();
321 m_edited.insert(id);
322
323 emit checkSetSelectionChanged(id);
324}
325
326}
327

Callers

nothing calls this directly

Calls 4

countMethod · 0.45
selectionAsStringMethod · 0.45
idMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected