diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-12 12:03:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-12 12:03:33 +0200 |
commit | 8e4751a9632bc675aa9779e233f67614103d394b (patch) | |
tree | 0b35ebafca524ceeecda1429b2684eabcc4c7ef0 /Libraries/LibGUI/AbstractView.h | |
parent | 93f2a4edd37c0c7d85b6f7cb099fba9108b53f48 (diff) | |
download | serenity-8e4751a9632bc675aa9779e233f67614103d394b.zip |
LibGUI: Add a way for models to update without invalidating indexes
This is really just a workaround to keep SystemMonitor's process table
working right wrt selection retention during resorts (while also doing
full index invalidation on things like ProfileViewer inversion.)
It's starting to feel like the model abstraction is not super great
and we'll need a better approach if we want to actually build some more
dynamic functionality into our views.
Diffstat (limited to 'Libraries/LibGUI/AbstractView.h')
-rw-r--r-- | Libraries/LibGUI/AbstractView.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/AbstractView.h b/Libraries/LibGUI/AbstractView.h index b48d94f1fe..021da4a316 100644 --- a/Libraries/LibGUI/AbstractView.h +++ b/Libraries/LibGUI/AbstractView.h @@ -49,7 +49,7 @@ public: void set_editable(bool editable) { m_editable = editable; } virtual bool accepts_focus() const override { return true; } - virtual void did_update_model(); + virtual void did_update_model(unsigned flags); virtual void did_update_selection(); virtual Gfx::Rect content_rect(const ModelIndex&) const { return {}; } |