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:
parent
b5525d4ec3
commit
2c947a2c97
4 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue