mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibGUI: Use set_layout<LayoutType>() in lots of client code
This commit is contained in:
parent
03e0ddce52
commit
4697195645
45 changed files with 109 additions and 109 deletions
|
@ -71,7 +71,7 @@ PowerDialog::PowerDialog()
|
|||
|
||||
auto main = GUI::Widget::construct();
|
||||
set_main_widget(main);
|
||||
main->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
main->set_layout<GUI::VerticalBoxLayout>();
|
||||
main->layout()->set_margins({ 8, 8, 8, 8 });
|
||||
main->layout()->set_spacing(8);
|
||||
main->set_fill_with_background_color(true);
|
||||
|
@ -99,7 +99,7 @@ PowerDialog::PowerDialog()
|
|||
}
|
||||
|
||||
auto button_box = main->add<GUI::Widget>();
|
||||
button_box->set_layout(make<GUI::HorizontalBoxLayout>());
|
||||
button_box->set_layout<GUI::HorizontalBoxLayout>();
|
||||
button_box->layout()->set_spacing(8);
|
||||
|
||||
auto ok_button = button_box->add<GUI::Button>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue