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

Method addFolder

kdevplatform/project/abstractfilemanagerplugin.cpp:517–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517ProjectFolderItem* AbstractFileManagerPlugin::addFolder( const Path& folder,
518 ProjectFolderItem * parent )
519{
520 Q_D(AbstractFileManagerPlugin);
521
522 qCDebug(FILEMANAGER) << "adding folder" << folder << "to" << parent->path();
523 ProjectFolderItem* created = nullptr;
524 d->stopWatcher(parent);
525 if ( createFolder(folder.toUrl()) ) {
526 created = createFolderItem( parent->project(), folder, parent );
527 if (created) {
528 emit folderAdded(created);
529 }
530 }
531 d->continueWatcher(parent);
532 return created;
533}
534
535
536ProjectFileItem* AbstractFileManagerPlugin::addFile( const Path& file,

Callers 1

Calls 5

stopWatcherMethod · 0.80
continueWatcherMethod · 0.80
pathMethod · 0.45
toUrlMethod · 0.45
projectMethod · 0.45

Tested by

no test coverage detected