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

Method index

plugins/cmake/cmakecommandscontents.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136QModelIndex CMakeCommandsContents::index(int row, int column, const QModelIndex& parent) const
137{
138 if(row<0 || column!=0)
139 return QModelIndex();
140 if(!parent.isValid() && row==ICMakeDocumentation::EOType)
141 return QModelIndex();
142
143 return createIndex(row,column, int(parent.isValid() ? parent.row() : -1));
144}
145
146int CMakeCommandsContents::rowCount(const QModelIndex& parent) const
147{

Callers 3

persistentIndicesMethod · 0.45
updateCacheMethod · 0.45
rowsInsertedMethod · 0.45

Calls 4

createIndexFunction · 0.85
QModelIndexClass · 0.50
isValidMethod · 0.45
rowMethod · 0.45

Tested by 1

rowsInsertedMethod · 0.36