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:
parent
cc93736f21
commit
d0e44993a1
2 changed files with 32 additions and 19 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue