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

Method store

plugins/clangtidy/config/checksetselectionlistmodel.cpp:103–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void CheckSetSelectionListModel::store() const
104{
105 if (!m_edited.isEmpty()) {
106 QVector<CheckSetSelection> m_checkSetSelectionsToSave;
107 for (const auto& selection : std::as_const(m_checkSetSelections)) {
108 const auto id = selection.id();
109 if (m_edited.contains(id)) {
110 m_checkSetSelectionsToSave.append(selection);
111 }
112 }
113 m_checkSetSelectionManager->saveCheckSetSelections(m_checkSetSelectionsToSave);
114 }
115 m_checkSetSelectionManager->setDefaultCheckSetSelection(m_defaultCheckSetSelectionId);
116 m_checkSetSelectionManager->removeCheckSetSelections(m_removed);
117
118 m_added.clear();
119 m_edited.clear();
120 m_removed.clear();
121 m_defaultChanged = false;
122}
123
124
125QString CheckSetSelectionListModel::checkSetSelectionId(const QModelIndex& index) const

Callers

nothing calls this directly

Calls 8

isEmptyMethod · 0.45
idMethod · 0.45
containsMethod · 0.45
appendMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected