diff options
author | networkException <git@nwex.de> | 2022-07-23 23:57:40 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-24 13:40:31 +0100 |
commit | 30d68d71b4a8d8aad71096c5824a84615e14190f (patch) | |
tree | 734793ebeeccf5be69d0562b74700bd14d46d2e3 /Userland/Libraries/LibGUI/AbstractView.h | |
parent | 7540259b16446e3575fc31f36d50e15a1a6e7ae3 (diff) | |
download | serenity-30d68d71b4a8d8aad71096c5824a84615e14190f.zip |
LibGUI: Move range selection calculations into separate function
AbstractView currently assumes a certain layout of rows and colums to
perform a range selection on.
This patch moves the implementation into a helper that can be overriden
by other views.
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractView.h')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractView.h b/Userland/Libraries/LibGUI/AbstractView.h index 9cfa0ae471..4811f9ce2a 100644 --- a/Userland/Libraries/LibGUI/AbstractView.h +++ b/Userland/Libraries/LibGUI/AbstractView.h @@ -156,6 +156,7 @@ protected: virtual void add_selection(ModelIndex const&); virtual void remove_selection(ModelIndex const&); virtual void toggle_selection(ModelIndex const&); + virtual void select_range(ModelIndex const&); virtual void did_change_hovered_index([[maybe_unused]] ModelIndex const& old_index, [[maybe_unused]] ModelIndex const& new_index) { } virtual void did_change_cursor_index([[maybe_unused]] ModelIndex const& old_index, [[maybe_unused]] ModelIndex const& new_index) { } virtual void editing_widget_did_change([[maybe_unused]] ModelIndex const& index) { } |