| 581 | } |
| 582 | |
| 583 | QList< ProjectFileItem* > Project::filesForPath(const IndexedString& file) const |
| 584 | { |
| 585 | Q_D(const Project); |
| 586 | |
| 587 | QList<ProjectFileItem*> fileItems; |
| 588 | const auto items = d->itemsForPath(file); |
| 589 | for (ProjectBaseItem* item : items) { |
| 590 | if( item->type() == ProjectBaseItem::File ) |
| 591 | fileItems << static_cast<ProjectFileItem*>(item); |
| 592 | } |
| 593 | return fileItems; |
| 594 | } |
| 595 | |
| 596 | QList<ProjectFolderItem*> Project::foldersForPath(const IndexedString& folder) const |
| 597 | { |