summaryrefslogtreecommitdiff
path: root/LibGUI/GTableView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-28 21:30:17 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-28 21:30:17 +0100
commitbff5b71467b9ef1f5fcee496923dbc9a814fee40 (patch)
treef60bec74eb1123e51219d8f579d51df34c04ff8b /LibGUI/GTableView.cpp
parent322f49caece344889919061b365700f989e8c338 (diff)
downloadserenity-bff5b71467b9ef1f5fcee496923dbc9a814fee40.zip
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.
Diffstat (limited to 'LibGUI/GTableView.cpp')
-rw-r--r--LibGUI/GTableView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp
index d05b257745..59dc4a5c1c 100644
--- a/LibGUI/GTableView.cpp
+++ b/LibGUI/GTableView.cpp
@@ -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