mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:54:57 +00:00
LibGUI: Remove `AbstractView::did_update_model()'
...and use `ModelClient::model_did_update()' instead. This makes AbstractView a ModelClient (which it always was anyway).
This commit is contained in:
parent
868c315e51
commit
71de8b7480
13 changed files with 26 additions and 23 deletions
|
@ -63,11 +63,11 @@ void AbstractView::set_model(RefPtr<Model> model)
|
|||
m_model = move(model);
|
||||
if (m_model)
|
||||
m_model->register_view({}, *this);
|
||||
did_update_model(GUI::Model::InvalidateAllIndexes);
|
||||
model_did_update(GUI::Model::InvalidateAllIndexes);
|
||||
scroll_to_top();
|
||||
}
|
||||
|
||||
void AbstractView::did_update_model(unsigned flags)
|
||||
void AbstractView::model_did_update(unsigned int flags)
|
||||
{
|
||||
// FIXME: It's unfortunate that we lose so much view state when the model updates in any way.
|
||||
stop_editing();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue