Replace All button pressed.
| 3899 | //* Replace All button pressed. |
| 3900 | //************************************************* |
| 3901 | void 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 |
nothing calls this directly
no test coverage detected