mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibGUI: Remove Widget::try_set_layout<T>()
And fall back to the infallible set_layout<T>(). Work towards #20557.
This commit is contained in:
parent
341626e2ea
commit
8322b31b97
52 changed files with 127 additions and 135 deletions
|
@ -13,7 +13,7 @@ GalleryWidget::GalleryWidget()
|
|||
set_layout<GUI::VerticalBoxLayout>();
|
||||
|
||||
auto& inner_widget = add<GUI::Widget>();
|
||||
inner_widget.try_set_layout<GUI::VerticalBoxLayout>(4).release_value_but_fixme_should_propagate_errors();
|
||||
inner_widget.set_layout<GUI::VerticalBoxLayout>(4);
|
||||
|
||||
m_tab_widget = inner_widget.try_add<GUI::TabWidget>().release_value_but_fixme_should_propagate_errors();
|
||||
m_statusbar = add<GUI::Statusbar>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue