mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibGUI/AbstractView: Remove on_selection
Since the introduction of multi-select, we have had both `on_selection` and `on_selection_change`, the latter of which was only invoked when a change in selection came in through the model. This removes `AbstractView::on_selection` and replaces it usage with the more explicit `on_selection_change` everywhere.
This commit is contained in:
parent
ebe38639bc
commit
2c772d1848
Notes:
sideshowbarker
2024-07-18 17:21:50 +09:00
Author: https://github.com/gmta
Commit: 2c772d1848
Pull-request: https://github.com/SerenityOS/serenity/pull/7468
Reviewed-by: https://github.com/alimpfard
12 changed files with 36 additions and 25 deletions
|
@ -98,7 +98,6 @@ public:
|
|||
|
||||
Function<void()> on_selection_change;
|
||||
Function<void(const ModelIndex&)> on_activation;
|
||||
Function<void(const ModelIndex&)> on_selection;
|
||||
Function<void(const ModelIndex&, const ContextMenuEvent&)> on_context_menu_request;
|
||||
Function<void(const ModelIndex&, const DropEvent&)> on_drop;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue