MCPcopy Create free account
hub / github.com/bumptop/BumpTop / onFileNameChanged

Method onFileNameChanged

trunk/win/Source/BT_FileSystemPile.cpp:733–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void FileSystemPile::onFileNameChanged(QString strOldFileName, QString strNewFileName)
734{
735 FileSystemActor *actor;
736
737 // Search all items in the pile for this path
738 for (uint i = 0; i < pileItems.size(); i++)
739 {
740 actor = (FileSystemActor *) pileItems[i];
741
742 // If the pile Item patches the file path, change its fileName
743 if (fsManager->isIdenticalPath(actor->getFullPath(), strOldFileName))
744 {
745 actor->setFilePath(strNewFileName);
746 rndrManager->invalidateRenderer();
747
748 return;
749 }
750 }
751}
752
753void FileSystemPile::onFileModified(QString strFileName)
754{

Callers

nothing calls this directly

Calls 5

isIdenticalPathMethod · 0.80
getFullPathMethod · 0.80
invalidateRendererMethod · 0.80
sizeMethod · 0.45
setFilePathMethod · 0.45

Tested by

no test coverage detected