MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / getEditorByFilePath

Method getEditorByFilePath

src/EditorManager.cpp:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153ScintillaNext *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
169void EditorManager::manageEditor(ScintillaNext *editor)
170{

Callers 4

initMethod · 0.80
loadFileDetailsMethod · 0.80
openFileListMethod · 0.80

Calls 2

isFileMethod · 0.80
getFileInfoMethod · 0.80

Tested by

no test coverage detected