summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/SystemMonitor')
-rw-r--r--Userland/Applications/SystemMonitor/main.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp
index e3f96643b1..7df0eaa925 100644
--- a/Userland/Applications/SystemMonitor/main.cpp
+++ b/Userland/Applications/SystemMonitor/main.cpp
@@ -168,16 +168,20 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& process_table_container = tabwidget.add_tab<GUI::Widget>("Processes");
auto performance_widget = build_performance_tab();
- tabwidget.add_widget("Performance", performance_widget);
+ performance_widget->set_title("Performance");
+ tabwidget.add_widget(performance_widget);
auto storage_widget = build_storage_widget();
- tabwidget.add_widget("Storage", storage_widget);
+ storage_widget->set_title("Storage");
+ tabwidget.add_widget(storage_widget);
auto network_stats_widget = NetworkStatisticsWidget::construct();
- tabwidget.add_widget("Network", network_stats_widget);
+ network_stats_widget->set_title("Network");
+ tabwidget.add_widget(network_stats_widget);
auto hardware_widget = build_hardware_tab();
- tabwidget.add_widget("Hardware", hardware_widget);
+ hardware_widget->set_title("Hardware");
+ tabwidget.add_widget(hardware_widget);
process_table_container.set_layout<GUI::VerticalBoxLayout>();
process_table_container.layout()->set_margins(4);