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
Notes: sideshowbarker 2024-07-19 12:47:40 +09:00
4 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,7 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget(GWidget* parent)
set_layout(make<GBoxLayout>(Orientation::Vertical));
layout()->set_margins({ 4, 4, 4, 4 });
m_table_view = new GTableView(this);
m_table_view->set_size_columns_to_fit_content(true);
m_table_view->set_model(adopt(*new ProcessFileDescriptorMapModel));
}