mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:34:59 +00:00
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.
This commit is contained in:
parent
93f2a4edd3
commit
8e4751a963
17 changed files with 37 additions and 29 deletions
|
@ -566,9 +566,9 @@ Gfx::Point AbstractTableView::adjusted_position(const Gfx::Point& position) cons
|
|||
return position.translated(horizontal_scrollbar().value() - frame_thickness(), vertical_scrollbar().value() - frame_thickness());
|
||||
}
|
||||
|
||||
void AbstractTableView::did_update_model()
|
||||
void AbstractTableView::did_update_model(unsigned flags)
|
||||
{
|
||||
AbstractView::did_update_model();
|
||||
AbstractView::did_update_model(flags);
|
||||
update_column_sizes();
|
||||
update_content_size();
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue