1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

TextEditor: Use the search API of GUI::TextEditor

This enables us to remove some code duplication and also makes the
search results highlighted.
This commit is contained in:
Itamar 2022-03-29 16:41:27 +03:00 committed by Andreas Kling
parent 5f2a0f03a6
commit de902ab659
2 changed files with 36 additions and 38 deletions

View file

@ -56,6 +56,12 @@ private:
virtual void drop_event(GUI::DropEvent&) override;
enum class ShowMessageIfNoResutls {
Yes = 1,
No = 0
};
void find_text(GUI::TextEditor::SearchDirection, ShowMessageIfNoResutls);
RefPtr<GUI::TextEditor> m_editor;
String m_path;
String m_name;