mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +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
Notes:
sideshowbarker
2024-07-19 09:53:13 +09:00
Author: https://github.com/bugaevc
Commit: 91d3fc54be
Pull-request: https://github.com/SerenityOS/serenity/pull/1115
6 changed files with 16 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue