| 731 | } |
| 732 | |
| 733 | void 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 | |
| 753 | void FileSystemPile::onFileModified(QString strFileName) |
| 754 | { |
nothing calls this directly
no test coverage detected