| 256 | } |
| 257 | |
| 258 | void 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 | |
| 272 | void EditorDocumentFind::findStringChanged() |
| 273 | { |
nothing calls this directly
no test coverage detected