mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Ali Mohammad Pur
parent
cc93736f21
commit
d0e44993a1
Notes:
sideshowbarker
2024-07-18 04:26:38 +09:00
Author: https://github.com/d1823 Commit: https://github.com/SerenityOS/serenity/commit/d0e44993a10 Pull-request: https://github.com/SerenityOS/serenity/pull/9790 Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user