mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +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
|
@ -35,11 +35,11 @@ public:
|
|||
int model_column() const { return m_model_column; }
|
||||
void set_model_column(int column) { m_model_column = column; }
|
||||
|
||||
virtual GModelIndex index_at_event_position(const Point&) const override;
|
||||
|
||||
private:
|
||||
GColumnsView(GWidget* parent = nullptr);
|
||||
virtual ~GColumnsView();
|
||||
|
||||
GModelIndex index_at_event_position(const Point&) const;
|
||||
void push_column(GModelIndex& parent_index);
|
||||
void update_column_sizes();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue