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

ProcessManager: Enable automatic column sizing for all table views

Start making use of the neat new mode in GTableView.
This commit is contained in:
Andreas Kling 2019-08-09 19:32:09 +02:00
parent b5525d4ec3
commit 2c947a2c97
4 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@
ProcessTableView::ProcessTableView(GraphWidget& graph, GWidget* parent)
: GTableView(parent)
{
set_size_columns_to_fit_content(true);
set_model(GSortingProxyModel::create(ProcessModel::create(graph)));
model()->set_key_column_and_sort_order(ProcessModel::Column::CPU, GSortOrder::Descending);
refresh();