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

Method addFile

kdevplatform/project/abstractfilemanagerplugin.cpp:536–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534
535
536ProjectFileItem* AbstractFileManagerPlugin::addFile( const Path& file,
537 ProjectFolderItem * parent )
538{
539 Q_D(AbstractFileManagerPlugin);
540
541 qCDebug(FILEMANAGER) << "adding file" << file << "to" << parent->path();
542 ProjectFileItem* created = nullptr;
543 d->stopWatcher(parent);
544 if ( createFile(file.toUrl()) ) {
545 created = createFileItem( parent->project(), file, parent );
546 if (created) {
547 emit fileAdded(created);
548 }
549 }
550 d->continueWatcher(parent);
551 return created;
552}
553
554bool AbstractFileManagerPlugin::renameFolder(ProjectFolderItem* folder, const Path& newPath)
555{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected