mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00
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:
parent
ff66101f9e
commit
91d3fc54be
6 changed files with 16 additions and 5 deletions
|
@ -68,6 +68,9 @@ public:
|
|||
|
||||
void scroll_into_view(const GModelIndex&, Orientation);
|
||||
|
||||
virtual GModelIndex index_at_event_position(const Point&, bool& is_toggle) const;
|
||||
virtual GModelIndex index_at_event_position(const Point&) const override;
|
||||
|
||||
protected:
|
||||
virtual ~GAbstractColumnView() override;
|
||||
explicit GAbstractColumnView(GWidget* parent);
|
||||
|
@ -81,7 +84,6 @@ protected:
|
|||
virtual void leave_event(CEvent&) override;
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
|
||||
virtual GModelIndex index_at_event_position(const Point&, bool& is_toggle) const;
|
||||
virtual void toggle_index(const GModelIndex&) {}
|
||||
|
||||
void paint_headers(GPainter&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue