1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:58:14 +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

@ -59,14 +59,14 @@ int main(int argc, char** argv)
auto widget = GUI::Widget::construct();
window->set_main_widget(widget);
widget->set_layout(make<GUI::VerticalBoxLayout>());
widget->set_layout<GUI::VerticalBoxLayout>();
widget->layout()->set_spacing(0);
auto container = widget->add<GUI::Widget>();
container->set_fill_with_background_color(true);
container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
container->set_preferred_size(0, 36);
container->set_layout(make<GUI::HorizontalBoxLayout>());
container->set_layout<GUI::HorizontalBoxLayout>();
auto flag_icon_label = container->add<GUI::Label>();
flag_icon_label->set_icon(Gfx::Bitmap::load_from_file("/res/icons/minesweeper/flag.png"));
auto flag_label = container->add<GUI::Label>();