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

Function findFileItems

kdevplatform/tests/testproject.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void findFileItems(ProjectBaseItem* root, QList<ProjectFileItem*>& items, const Path& path = {})
77{
78 const auto children = root->children();
79 for (ProjectBaseItem* item : children) {
80 if (item->file() && (path.isEmpty() || item->path() == path)) {
81 items << item->file();
82 }
83 if (item->rowCount()) {
84 findFileItems(item, items, path);
85 }
86 }
87}
88
89QList<ProjectFileItem*> TestProject::files() const
90{

Callers 2

filesMethod · 0.85
filesForPathMethod · 0.85

Calls 5

childrenMethod · 0.45
fileMethod · 0.45
isEmptyMethod · 0.45
pathMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected