mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:45:08 +00:00
LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing
Auto-sizing of view columns is now enabled by default. This removes the last remaining need for ColumnMetadata, so this patch gets rid of it.
This commit is contained in:
parent
c666c251c8
commit
2adb0a07e5
38 changed files with 1 additions and 216 deletions
|
@ -309,7 +309,6 @@ NonnullRefPtr<GUI::Widget> build_file_systems_tab()
|
|||
self.set_layout<GUI::VerticalBoxLayout>();
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto& fs_table_view = self.add<GUI::TableView>();
|
||||
fs_table_view.set_size_columns_to_fit_content(true);
|
||||
|
||||
Vector<GUI::JsonArrayModel::FieldSpec> df_fields;
|
||||
df_fields.empend("mount_point", "Mount point", Gfx::TextAlignment::CenterLeft);
|
||||
|
@ -402,7 +401,6 @@ NonnullRefPtr<GUI::Widget> build_pci_devices_tab()
|
|||
self.set_layout<GUI::VerticalBoxLayout>();
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto& pci_table_view = self.add<GUI::TableView>();
|
||||
pci_table_view.set_size_columns_to_fit_content(true);
|
||||
|
||||
auto db = PCIDB::Database::open();
|
||||
|
||||
|
@ -461,7 +459,6 @@ NonnullRefPtr<GUI::Widget> build_devices_tab()
|
|||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto& devices_table_view = self.add<GUI::TableView>();
|
||||
devices_table_view.set_size_columns_to_fit_content(true);
|
||||
devices_table_view.set_model(GUI::SortingProxyModel::create(DevicesModel::create()));
|
||||
devices_table_view.model()->update();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue