mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibGUI: Make descendants of AbstractView define their own select_all() (#1201)
AbstractView does not know which column it's displaying which makes it impossible to implement the select_all functionality up there. Now descendants override the pure virtual select_all method and implement it themselves.
This commit is contained in:
parent
6824cb17a6
commit
8e1645423f
Notes:
sideshowbarker
2024-07-19 09:04:07 +09:00
Author: https://github.com/DAlperin
Commit: 8e1645423f
Pull-request: https://github.com/SerenityOS/serenity/pull/1201
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
10 changed files with 54 additions and 14 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
ModelSelection& selection() { return m_selection; }
|
||||
const ModelSelection& selection() const { return m_selection; }
|
||||
void select_all();
|
||||
virtual void select_all() = 0;
|
||||
|
||||
bool is_editable() const { return m_editable; }
|
||||
void set_editable(bool editable) { m_editable = editable; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue