1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +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

@ -20,6 +20,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget(GWidget* parent)
adapters_group_box->set_preferred_size(0, 120);
m_adapter_table_view = new GTableView(adapters_group_box);
m_adapter_table_view->set_size_columns_to_fit_content(true);
m_adapter_table_view->set_model(NetworkAdapterModel::create());
auto* sockets_group_box = new GGroupBox("Sockets", this);
@ -29,6 +30,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget(GWidget* parent)
sockets_group_box->set_preferred_size(0, 0);
m_socket_table_view = new GTableView(sockets_group_box);
m_socket_table_view->set_size_columns_to_fit_content(true);
m_socket_table_view->set_model(SocketModel::create());
m_update_timer = new CTimer(