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
|
@ -64,13 +64,13 @@ VBForm::VBForm(const String& name)
|
|||
m_context_menu->add_action(GUI::Action::create("Lay out horizontally", Gfx::Bitmap::load_from_file("/res/icons/16x16/layout-horizontally.png"), [this](auto&) {
|
||||
if (auto* widget = single_selected_widget()) {
|
||||
dbg() << "Giving " << *widget->gwidget() << " a horizontal box layout";
|
||||
widget->gwidget()->set_layout(make<GUI::HorizontalBoxLayout>());
|
||||
widget->gwidget()->set_layout<GUI::HorizontalBoxLayout>();
|
||||
}
|
||||
}));
|
||||
m_context_menu->add_action(GUI::Action::create("Lay out vertically", Gfx::Bitmap::load_from_file("/res/icons/16x16/layout-vertically.png"), [this](auto&) {
|
||||
if (auto* widget = single_selected_widget()) {
|
||||
dbg() << "Giving " << *widget->gwidget() << " a vertical box layout";
|
||||
widget->gwidget()->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
widget->gwidget()->set_layout<GUI::VerticalBoxLayout>();
|
||||
}
|
||||
}));
|
||||
m_context_menu->add_separator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue