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:
parent
5f2a0f03a6
commit
de902ab659
2 changed files with 36 additions and 38 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue