| 615 | } |
| 616 | |
| 617 | void ProjectFolderItem::propagateRename( const Path& newBase ) const |
| 618 | { |
| 619 | Path path = newBase; |
| 620 | path.addPath(QStringLiteral("dummy")); |
| 621 | const auto children = this->children(); |
| 622 | for (KDevelop::ProjectBaseItem* child : children) { |
| 623 | path.setLastPathSegment( child->text() ); |
| 624 | child->setPath( path ); |
| 625 | |
| 626 | const ProjectFolderItem* folder = child->folder(); |
| 627 | if ( folder ) { |
| 628 | folder->propagateRename( path ); |
| 629 | } |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | ProjectBaseItem::RenameStatus ProjectFolderItem::rename(const QString& newName) |
| 634 | { |