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

Method checkSetSelectionId

plugins/clangtidy/config/checksetselectionlistmodel.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125QString CheckSetSelectionListModel::checkSetSelectionId(const QModelIndex& index) const
126{
127 const int checkSetSelectionIndex = index.row();
128 const bool isValidIndex =
129 (0 <= checkSetSelectionIndex) && (checkSetSelectionIndex < m_checkSetSelections.count());
130
131 return isValidIndex ? m_checkSetSelections.at(checkSetSelectionIndex).id() : QString();
132}
133
134QString CheckSetSelectionListModel::checkSetSelectionId(int row) const
135{

Callers 1

reloadMethod · 0.45

Calls 5

QStringClass · 0.50
rowMethod · 0.45
countMethod · 0.45
idMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected