diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2020-01-22 18:13:01 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-22 21:22:23 +0100 |
commit | 91d3fc54be8a10893baf46afa0a379686247c85d (patch) | |
tree | 45f39c932e90f19f01f501db97aa9a12f98cad6f /Libraries/LibGUI/GAbstractView.h | |
parent | ff66101f9e070deca0a71739c90fe6a5716ff1ff (diff) | |
download | serenity-91d3fc54be8a10893baf46afa0a379686247c85d.zip |
LibGUI: Move index_at_event_position() up to GAbstractView
It's now an abstract (pure virtual) public method in GAbstractView that
individual widgets have to implement. This will allow us to move more
selection-related logic into GAbstractView in order to share it between
implementations.
Diffstat (limited to 'Libraries/LibGUI/GAbstractView.h')
-rw-r--r-- | Libraries/LibGUI/GAbstractView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GAbstractView.h b/Libraries/LibGUI/GAbstractView.h index 997818b204..59def38632 100644 --- a/Libraries/LibGUI/GAbstractView.h +++ b/Libraries/LibGUI/GAbstractView.h @@ -54,6 +54,7 @@ public: virtual void did_update_selection(); virtual Rect content_rect(const GModelIndex&) const { return {}; } + virtual GModelIndex index_at_event_position(const Point&) const = 0; void begin_editing(const GModelIndex&); void stop_editing(); |