| 111 | } |
| 112 | |
| 113 | QString BasicRefactoring::newFileName(const QUrl& current, const QString& newName) |
| 114 | { |
| 115 | QPair<QString, QString> nameExtensionPair = splitFileAtExtension(current.fileName()); |
| 116 | // if current file is lowercased, keep that |
| 117 | if (nameExtensionPair.first == nameExtensionPair.first.toLower()) { |
| 118 | return newName.toLower() + nameExtensionPair.second; |
| 119 | } else { |
| 120 | return newName + nameExtensionPair.second; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | DocumentChangeSet::ChangeResult BasicRefactoring::addRenameFileChanges(const QUrl& current, |
| 125 | const QString& newName, |
no test coverage detected