mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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
Notes:
sideshowbarker
2024-07-19 01:09:42 +09:00
Author: https://github.com/alimpfard
Commit: 71de8b7480
Pull-request: https://github.com/SerenityOS/serenity/pull/4177
Issue: https://github.com/SerenityOS/serenity/issues/4167
Issue: https://github.com/SerenityOS/serenity/issues/4168
Issue: https://github.com/SerenityOS/serenity/issues/4170
Issue: https://github.com/SerenityOS/serenity/issues/4171
Reviewed-by: https://github.com/awesomekling
13 changed files with 26 additions and 23 deletions
|
@ -135,9 +135,9 @@ auto IconView::item_data_from_content_position(const Gfx::IntPoint& content_posi
|
|||
return &get_item_data(item_index);
|
||||
}
|
||||
|
||||
void IconView::did_update_model(unsigned flags)
|
||||
void IconView::model_did_update(unsigned flags)
|
||||
{
|
||||
AbstractView::did_update_model(flags);
|
||||
AbstractView::model_did_update(flags);
|
||||
if (!model() || (flags & GUI::Model::InvalidateAllIndexes)) {
|
||||
m_item_data_cache.clear();
|
||||
AbstractView::clear_selection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue