| 1653 | } |
| 1654 | |
| 1655 | bool Project::Item::renameFile (const File& newFile) |
| 1656 | { |
| 1657 | auto oldFile = getFile(); |
| 1658 | |
| 1659 | if (oldFile.moveFileTo (newFile) |
| 1660 | || (newFile.exists() && ! oldFile.exists())) |
| 1661 | { |
| 1662 | setFile (newFile); |
| 1663 | ProjucerApplication::getApp().openDocumentManager.fileHasBeenRenamed (oldFile, newFile); |
| 1664 | return true; |
| 1665 | } |
| 1666 | |
| 1667 | return false; |
| 1668 | } |
| 1669 | |
| 1670 | bool Project::Item::containsChildForFile (const build_tools::RelativePath& file) const |
| 1671 | { |
no test coverage detected