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

Method indexFromProject

plugins/projectmanagerview/vcsoverlayproxymodel.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148QModelIndex VcsOverlayProxyModel::indexFromProject(QObject* project)
149{
150 for(int i=0; i<rowCount(); i++) {
151 QModelIndex idx = index(i,0);
152 if(idx.data(ProjectModel::ProjectRole).value<QObject*>()==project) {
153 return idx;
154 }
155 }
156 return QModelIndex();
157}
158
159#include "moc_vcsoverlayproxymodel.cpp"

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.70
indexFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected