| 151 | } |
| 152 | |
| 153 | ScintillaNext *EditorManager::getEditorByFilePath(const QString &filePath) |
| 154 | { |
| 155 | QFileInfo newInfo(filePath); |
| 156 | newInfo.makeAbsolute(); |
| 157 | |
| 158 | purgeOldEditorPointers(); |
| 159 | |
| 160 | for (ScintillaNext *editor : qAsConst(editors)) { |
| 161 | if (editor->isFile() && editor->getFileInfo() == newInfo) { |
| 162 | return editor; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | return Q_NULLPTR; |
| 167 | } |
| 168 | |
| 169 | void EditorManager::manageEditor(ScintillaNext *editor) |
| 170 | { |
no test coverage detected