summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/AbstractView.h
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2022-07-23 23:57:40 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-24 13:40:31 +0100
commit30d68d71b4a8d8aad71096c5824a84615e14190f (patch)
tree734793ebeeccf5be69d0562b74700bd14d46d2e3 /Userland/Libraries/LibGUI/AbstractView.h
parent7540259b16446e3575fc31f36d50e15a1a6e7ae3 (diff)
downloadserenity-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.h1
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) { }