summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Model.cpp
AgeCommit message (Collapse)Author
2020-08-13LibGUI: Rename ModelClient::on_model_update() => model_did_update()Andreas Kling
This follows the typical client callback naming scheme used elsewhere and doesn't collide with the "on_foo" Function hook convention.
2020-08-13LibGUI: Remove Model::sibling() since it's the same as index()Andreas Kling
... I'm not sure what the idea was here, but since these functions do the same thing, let's only have index().
2020-08-13LibGUI: Move Model::index() out of lineAndreas Kling
2020-07-13LibGUI: Add ModelClient abstract class and allow registering clientsTom
This solves a problem where the SortingProxyModel doesn't receive the on_update call because other code overwrote the handler later on.
2020-04-12LibGUI: Add a way for models to update without invalidating indexesAndreas Kling
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.
2020-02-13LibGUI: Add GUI::Model::accepts_drag(index, data_type)Andreas Kling
This allows a model to indicate whether it would accept a drag with a given data type being dropped on a given index.
2020-02-06LibGUI: Remove leading G from filenamesAndreas Kling