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.
This commit is contained in:
Sergey Bugaev 2020-01-22 18:13:01 +03:00 committed by Andreas Kling
commit 91d3fc54be
Notes: sideshowbarker 2024-07-19 09:53:13 +09:00
6 changed files with 16 additions and 5 deletions

View file

@ -51,7 +51,7 @@ public:
Point adjusted_position(const Point&) const;
GModelIndex index_at_event_position(const Point&) const;
virtual GModelIndex index_at_event_position(const Point&) const override;
virtual Rect content_rect(const GModelIndex&) const override;
int model_column() const { return m_model_column; }