| 534 | |
| 535 | |
| 536 | ProjectFileItem* 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 | |
| 554 | bool AbstractFileManagerPlugin::renameFolder(ProjectFolderItem* folder, const Path& newPath) |
| 555 | { |
nothing calls this directly
no test coverage detected