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

Method persistentIndices

plugins/cmake/settings/cmakecachemodel.cpp:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192QList< QModelIndex > CMakeCacheModel::persistentIndices() const
193{
194 QList< QModelIndex > ret;
195 for(int i=0; i<rowCount(); i++)
196 {
197 QStandardItem* type = item(i, 1);
198 if(type->text()==QLatin1String("BOOL"))
199 {
200 QStandardItem* valu = item(i, 2);
201 ret.append(valu->index());
202 }
203 }
204 return ret;
205}
206
207KDevelop::Path CMakeCacheModel::filePath() const
208{

Callers 1

configureCacheViewMethod · 0.80

Calls 3

textMethod · 0.45
appendMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected