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:
parent
6df3df62be
commit
25bb7a59ac
10 changed files with 140 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue