diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-04 09:43:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-04 13:49:48 +0100 |
commit | 4697195645a4c66930761c85685f5752dc777bba (patch) | |
tree | cc77feb29541d43323a5edce70f05412ab1e8e68 /Applications/SystemMenu/PowerDialog.cpp | |
parent | 03e0ddce5237b6ad7b84724ef03039e413944f00 (diff) | |
download | serenity-4697195645a4c66930761c85685f5752dc777bba.zip |
LibGUI: Use set_layout<LayoutType>() in lots of client code
Diffstat (limited to 'Applications/SystemMenu/PowerDialog.cpp')
-rw-r--r-- | Applications/SystemMenu/PowerDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SystemMenu/PowerDialog.cpp b/Applications/SystemMenu/PowerDialog.cpp index 0ce7fa87f8..c65f1495a2 100644 --- a/Applications/SystemMenu/PowerDialog.cpp +++ b/Applications/SystemMenu/PowerDialog.cpp @@ -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>(); |