mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
This commit is contained in:
parent
5fed25ca9a
commit
797968c310
18 changed files with 59 additions and 59 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue