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/Applications/PDFViewer | |
parent | 5fed25ca9aa014372ccfbb79accb49663fc449e2 (diff) | |
download | serenity-797968c310d3b13f74968ba292e0b360d6d2d9c2.zip |
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
Diffstat (limited to 'Userland/Applications/PDFViewer')
-rw-r--r-- | Userland/Applications/PDFViewer/SidebarWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PDFViewer/SidebarWidget.cpp b/Userland/Applications/PDFViewer/SidebarWidget.cpp index cb3cc14201..87dc2925e9 100644 --- a/Userland/Applications/PDFViewer/SidebarWidget.cpp +++ b/Userland/Applications/PDFViewer/SidebarWidget.cpp @@ -17,7 +17,7 @@ SidebarWidget::SidebarWidget() auto& tab_bar = add<GUI::TabWidget>(); - auto& outline_container = tab_bar.add_tab<GUI::Widget>("Outline"); + auto& outline_container = tab_bar.add_tab<GUI::Widget>("Outline"_short_string); outline_container.set_layout<GUI::VerticalBoxLayout>(4); m_outline_tree_view = outline_container.add<GUI::TreeView>(); @@ -32,7 +32,7 @@ SidebarWidget::SidebarWidget() on_destination_selected(destination); }; - auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails"); + auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails"_string.release_value_but_fixme_should_propagate_errors()); thumbnails_container.set_layout<GUI::VerticalBoxLayout>(4); // FIXME: Add thumbnail previews |