| 74 | } |
| 75 | |
| 76 | void 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 | |
| 89 | QList<ProjectFileItem*> TestProject::files() const |
| 90 | { |