From d67da8c1015c923d799409fee9bf6dd2eafc82b8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Feb 2020 09:48:11 +0100 Subject: LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes --- Applications/SystemMonitor/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Applications/SystemMonitor/main.cpp') diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 726788a2fd..c300083a14 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -116,7 +116,7 @@ int main(int argc, char** argv) auto keeper = GWidget::construct(); window->set_main_widget(keeper); - keeper->set_layout(make(Orientation::Vertical)); + keeper->set_layout(make()); keeper->set_fill_with_background_color(true); keeper->layout()->set_margins({ 4, 4, 4, 4 }); @@ -138,7 +138,7 @@ int main(int argc, char** argv) auto network_stats_widget = NetworkStatisticsWidget::construct(nullptr); tabwidget->add_widget("Network", network_stats_widget); - process_table_container->set_layout(make(Orientation::Vertical)); + process_table_container->set_layout(make()); process_table_container->layout()->set_margins({ 4, 0, 4, 4 }); process_table_container->layout()->set_spacing(0); @@ -279,7 +279,7 @@ RefPtr build_file_systems_tab() auto fs_widget = GLazyWidget::construct(); fs_widget->on_first_show = [](auto& self) { - self.set_layout(make(Orientation::Vertical)); + self.set_layout(make()); self.layout()->set_margins({ 4, 4, 4, 4 }); auto fs_table_view = GTableView::construct(&self); fs_table_view->set_size_columns_to_fit_content(true); @@ -368,7 +368,7 @@ RefPtr build_pci_devices_tab() auto pci_widget = GLazyWidget::construct(); pci_widget->on_first_show = [](auto& self) { - self.set_layout(make(Orientation::Vertical)); + self.set_layout(make()); self.layout()->set_margins({ 4, 4, 4, 4 }); auto pci_table_view = GTableView::construct(&self); pci_table_view->set_size_columns_to_fit_content(true); @@ -426,7 +426,7 @@ RefPtr build_devices_tab() auto devices_widget = GLazyWidget::construct(); devices_widget->on_first_show = [](auto& self) { - self.set_layout(make(Orientation::Vertical)); + self.set_layout(make()); self.layout()->set_margins({ 4, 4, 4, 4 }); auto devices_table_view = GTableView::construct(&self); @@ -445,11 +445,11 @@ NonnullRefPtr build_graphs_tab() graphs_container->on_first_show = [](auto& self) { self.set_fill_with_background_color(true); self.set_background_role(ColorRole::Button); - self.set_layout(make(Orientation::Vertical)); + self.set_layout(make()); self.layout()->set_margins({ 4, 4, 4, 4 }); auto cpu_graph_group_box = GGroupBox::construct("CPU usage", &self); - cpu_graph_group_box->set_layout(make(Orientation::Vertical)); + cpu_graph_group_box->set_layout(make()); cpu_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 }); cpu_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); cpu_graph_group_box->set_preferred_size(0, 120); @@ -466,7 +466,7 @@ NonnullRefPtr build_graphs_tab() }; auto memory_graph_group_box = GGroupBox::construct("Memory usage", &self); - memory_graph_group_box->set_layout(make(Orientation::Vertical)); + memory_graph_group_box->set_layout(make()); memory_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 }); memory_graph_group_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); memory_graph_group_box->set_preferred_size(0, 120); -- cgit v1.2.3