| 1673 | } |
| 1674 | |
| 1675 | Project::Item Project::Item::findItemForFile (const File& file) const |
| 1676 | { |
| 1677 | if (getFile() == file) |
| 1678 | return *this; |
| 1679 | |
| 1680 | if (isGroup()) |
| 1681 | { |
| 1682 | for (auto i = getNumChildren(); --i >= 0;) |
| 1683 | { |
| 1684 | auto found = getChild(i).findItemForFile (file); |
| 1685 | |
| 1686 | if (found.isValid()) |
| 1687 | return found; |
| 1688 | } |
| 1689 | } |
| 1690 | |
| 1691 | return Item (project, ValueTree(), false); |
| 1692 | } |
| 1693 | |
| 1694 | File Project::Item::determineGroupFolder() const |
| 1695 | { |
no test coverage detected