MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / replaceAll

Method replaceAll

src/plugins/codeeditor/find/editordocumentfind.cpp:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void EditorDocumentFind::replaceAll(const QString &before, const QString &after)
259{
260 if (before.isEmpty())
261 return;
262
263 auto w = d->autoAdjustCurrentEditor();
264 auto editor = qobject_cast<TextEditor *>(w);
265 if (!editor || editor->isReadOnly())
266 return;
267
268 d->doReplaceAll(editor, before, after);
269 d->isFindFirst = true;
270}
271
272void EditorDocumentFind::findStringChanged()
273{

Callers

nothing calls this directly

Calls 4

isReadOnlyMethod · 0.80
doReplaceAllMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected