1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 14:05:06 +00:00

ProcessManager: Add CPU/memory usage graphs in a separate tab.

Finally we get some real use for the new GTabWidget. :^)
This commit is contained in:
Andreas Kling 2019-05-06 03:21:23 +02:00
parent 6df3df62be
commit 25bb7a59ac
10 changed files with 140 additions and 19 deletions

View file

@ -3,10 +3,10 @@
#include <LibGUI/GSortingProxyModel.h>
#include <stdio.h>
ProcessTableView::ProcessTableView(GWidget* parent)
ProcessTableView::ProcessTableView(GraphWidget& graph, GWidget* parent)
: GTableView(parent)
{
set_model(GSortingProxyModel::create(ProcessModel::create()));
set_model(GSortingProxyModel::create(ProcessModel::create(graph)));
model()->set_key_column_and_sort_order(ProcessModel::Column::CPU, GSortOrder::Descending);
refresh();
}