MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / findReplaceAllInNotePressed

Method findReplaceAllInNotePressed

gui/nbrowserwindow.cpp:3901–3915  ·  view source on GitHub ↗

Replace All button pressed.

Source from the content-addressed store, hash-verified

3899//* Replace All button pressed.
3900//*************************************************
3901void NBrowserWindow::findReplaceAllInNotePressed() {
3902 QString find = findReplace->findLine->text();
3903 QString replace = findReplace->replaceLine->text();
3904 if (find == "")
3905 return;
3906 bool found = false;
3907 while (true) {
3908 found = editor->page()->findText(find,
3909 findReplace->getCaseSensitive() | QWebPage::FindWrapsAroundDocument);
3910 if (!found)
3911 return;
3912 QApplication::clipboard()->setText(replace);
3913 editor->pasteAction->trigger();
3914 }
3915}
3916
3917
3918

Callers

nothing calls this directly

Calls 2

getCaseSensitiveMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected