1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +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:
DAlperin 2020-02-25 10:03:15 -05:00 committed by GitHub
parent 6824cb17a6
commit 8e1645423f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 54 additions and 14 deletions

View file

@ -55,6 +55,7 @@ private:
virtual void mousedown_event(MouseEvent& event) override;
virtual void keydown_event(KeyEvent& event) override;
virtual void select_all() override;
struct Column {
ModelIndex parent_index;
int width;