mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibGUI: Add a GModelNotification class that views will receive.
I don't want to use GEvent here since these need to be synchronous and mixing sync and async GEvents would be stupid.
This commit is contained in:
@@ -65,10 +65,15 @@ int GTableView::content_width() const
|
||||
return width;
|
||||
}
|
||||
|
||||
void GTableView::model_notification(const GModelNotification&)
|
||||
{
|
||||
}
|
||||
|
||||
void GTableView::did_update_model()
|
||||
{
|
||||
update_scrollbar_ranges();
|
||||
update();
|
||||
model_notification(GModelNotification(GModelNotification::ModelUpdated));
|
||||
}
|
||||
|
||||
Rect GTableView::row_rect(int item_index) const
|
||||
|
||||
Reference in New Issue
Block a user