mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
This commit is contained in:
parent
5fed25ca9a
commit
797968c310
Notes:
sideshowbarker
2024-07-16 22:51:25 +09:00
Author: https://github.com/krkk
Commit: 797968c310
Pull-request: https://github.com/SerenityOS/serenity/pull/17800
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/awesomekling
18 changed files with 59 additions and 59 deletions
|
@ -58,7 +58,7 @@ ErrorOr<void> PropertiesWindow::create_widgets(bool disable_rename)
|
|||
|
||||
auto tab_widget = TRY(main_widget->try_add<GUI::TabWidget>());
|
||||
|
||||
auto general_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("General"));
|
||||
auto general_tab = TRY(tab_widget->try_add_tab<GUI::Widget>("General"_short_string));
|
||||
TRY(general_tab->load_from_gml(properties_window_general_tab_gml));
|
||||
|
||||
m_icon = general_tab->find_descendant_of_type_named<GUI::ImageWidget>("icon");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue