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

Method projectRoots

plugins/git/repostatusmodel.cpp:432–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432const QList<QStandardItem*> RepoStatusModel::projectRoots() const
433{
434 QList<QStandardItem*> ret;
435 auto* root = invisibleRootItem();
436 for (int i = 0; i < root->rowCount(); i++) {
437 QStandardItem* child = root->child(i);
438
439 if (child->data(AreaRole) == ProjectRoot)
440 ret << child;
441 }
442
443 return ret;
444}
445
446const QList<QStandardItem*> RepoStatusModel::items(const QStandardItem* project, Areas area) const
447{

Callers 2

activeProjectItemMethod · 0.80
activateProjectMethod · 0.80

Calls 3

rowCountMethod · 0.45
childMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected