summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-16 10:44:10 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-16 16:44:09 +0200
commite1ed71ef9e50909f29dc4aa984e8544c7f7077c4 (patch)
tree70661e54eb0e786b5152618433ee43bca1623721 /Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
parent370624bc376824c0c9d0966df62e0e1438aca08f (diff)
downloadserenity-e1ed71ef9e50909f29dc4aa984e8544c7f7077c4.zip
LibGUI: Make model sorting imperative and move order to AbstractView
Instead of SortingProxyModel having a column+order, we move that state to AbstractView. When you click on a column header, the view tells the model to resort the relevant column with the new order. This is implemented in SortingProxyModel by simply walking all the reified source/proxy mappings and resorting their row indexes.
Diffstat (limited to 'Applications/SystemMonitor/ProcessMemoryMapWidget.cpp')
-rw-r--r--Applications/SystemMonitor/ProcessMemoryMapWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
index 37043909ec..d0412954a5 100644
--- a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
+++ b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
@@ -120,7 +120,7 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
m_table_view->set_cell_painting_delegate(7, make<PagemapPaintingDelegate>());
- m_table_view->model()->set_key_column_and_sort_order(0, GUI::SortOrder::Ascending);
+ m_table_view->set_key_column_and_sort_order(0, GUI::SortOrder::Ascending);
m_timer = add<Core::Timer>(1000, [this] { refresh(); });
}