diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-03-10 18:55:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-16 09:58:42 +0100 |
commit | 797968c310d3b13f74968ba292e0b360d6d2d9c2 (patch) | |
tree | cc1a1bc5f52a9ce43d443d5630aa0da15e4b643b /Userland/DevTools/Profiler/main.cpp | |
parent | 5fed25ca9aa014372ccfbb79accb49663fc449e2 (diff) | |
download | serenity-797968c310d3b13f74968ba292e0b360d6d2d9c2.zip |
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
Diffstat (limited to 'Userland/DevTools/Profiler/main.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp index 6fe4abdfdd..e5fc424623 100644 --- a/Userland/DevTools/Profiler/main.cpp +++ b/Userland/DevTools/Profiler/main.cpp @@ -131,7 +131,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto tab_widget = TRY(main_splitter->try_add<GUI::TabWidget>()); - auto tree_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("Call Tree")); + auto tree_tab = TRY(tab_widget->try_add_tab<GUI::Widget>(TRY("Call Tree"_string))); TRY(tree_tab->try_set_layout<GUI::VerticalBoxLayout>(4)); auto bottom_splitter = TRY(tree_tab->try_add<GUI::VerticalSplitter>()); @@ -180,7 +180,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) update_source_model(); }); - auto samples_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("Samples")); + auto samples_tab = TRY(tab_widget->try_add_tab<GUI::Widget>(TRY("Samples"_string))); TRY(samples_tab->try_set_layout<GUI::VerticalBoxLayout>(4)); auto samples_splitter = TRY(samples_tab->try_add<GUI::HorizontalSplitter>()); @@ -194,7 +194,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) individual_sample_view->set_model(move(model)); }; - auto signposts_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("Signposts")); + auto signposts_tab = TRY(tab_widget->try_add_tab<GUI::Widget>(TRY("Signposts"_string))); TRY(signposts_tab->try_set_layout<GUI::VerticalBoxLayout>(4)); auto signposts_splitter = TRY(signposts_tab->try_add<GUI::HorizontalSplitter>()); @@ -208,7 +208,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) individual_signpost_view->set_model(move(model)); }; - auto flamegraph_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("Flame Graph")); + auto flamegraph_tab = TRY(tab_widget->try_add_tab<GUI::Widget>(TRY("Flame Graph"_string))); TRY(flamegraph_tab->try_set_layout<GUI::VerticalBoxLayout>(GUI::Margins { 4, 4, 4, 4 })); auto flamegraph_view = TRY(flamegraph_tab->try_add<FlameGraphView>(profile->model(), ProfileModel::Column::StackFrame, ProfileModel::Column::SampleCount)); @@ -256,7 +256,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) timeline_view->on_selection_change = [&] { statusbar_update(); }; flamegraph_view->on_hover_change = [&] { statusbar_update(); }; - auto filesystem_events_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("Filesystem events")); + auto filesystem_events_tab = TRY(tab_widget->try_add_tab<GUI::Widget>(TRY("Filesystem events"_string))); TRY(filesystem_events_tab->try_set_layout<GUI::VerticalBoxLayout>(4)); auto filesystem_events_tree_view = TRY(filesystem_events_tab->try_add<GUI::TreeView>()); |