1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibGUI: Use set_layout<LayoutType>() in lots of client code

This commit is contained in:
Andreas Kling 2020-03-04 09:43:54 +01:00
parent 03e0ddce52
commit 4697195645
45 changed files with 109 additions and 109 deletions

View file

@ -60,13 +60,13 @@ int main(int argc, char** argv)
auto horizontal_container = GUI::Widget::construct();
window->set_main_widget(horizontal_container);
horizontal_container->set_layout(make<GUI::HorizontalBoxLayout>());
horizontal_container->set_layout<GUI::HorizontalBoxLayout>();
horizontal_container->layout()->set_spacing(0);
horizontal_container->add<ToolboxWidget>();
auto vertical_container = horizontal_container->add<GUI::Widget>();
vertical_container->set_layout(make<GUI::VerticalBoxLayout>());
vertical_container->set_layout<GUI::VerticalBoxLayout>();
vertical_container->layout()->set_spacing(0);
auto paintable_widget = vertical_container->add<PaintableWidget>();