1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibGUI: Refactor AbstractView::do_search() into two standalone steps

This change splits the do_search() into find_next_search_match() and
highlight_search() to allow the given index be independently highlighted
when needed.
This commit is contained in:
Dawid Wolosowicz 2021-09-04 15:16:21 +02:00 committed by Ali Mohammad Pur
parent cc93736f21
commit d0e44993a1
2 changed files with 32 additions and 19 deletions

View file

@ -164,7 +164,8 @@ protected:
void stop_highlighted_search_timer();
void start_highlighted_search_timer();
void do_search(String&&);
ModelIndex find_next_search_match(StringView const);
void highlight_search(ModelIndex const index);
ModelIndex drop_candidate_index() const { return m_drop_candidate_index; }