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

Method propagateRename

kdevplatform/project/projectmodel.cpp:617–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617void 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
633ProjectBaseItem::RenameStatus ProjectFolderItem::rename(const QString& newName)
634{

Callers

nothing calls this directly

Calls 6

setLastPathSegmentMethod · 0.80
folderMethod · 0.80
addPathMethod · 0.45
childrenMethod · 0.45
textMethod · 0.45
setPathMethod · 0.45

Tested by

no test coverage detected