mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibGUI: Rename {H,V}BoxLayout => {Horizontal,Vertical}BoxLayout
This commit is contained in:
parent
dccf335d5b
commit
799b0a4fa8
49 changed files with 114 additions and 114 deletions
|
@ -65,13 +65,13 @@ VBForm::VBForm(const String& name, GUI::Widget* parent)
|
|||
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::HBoxLayout>());
|
||||
widget->gwidget()->set_layout(make<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::VBoxLayout>());
|
||||
widget->gwidget()->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
}
|
||||
}));
|
||||
m_context_menu->add_separator();
|
||||
|
|
|
@ -83,7 +83,7 @@ VBPropertiesWindow::VBPropertiesWindow()
|
|||
|
||||
auto widget = GUI::Widget::construct();
|
||||
widget->set_fill_with_background_color(true);
|
||||
widget->set_layout(make<GUI::VBoxLayout>());
|
||||
widget->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
widget->layout()->set_margins({ 2, 2, 2, 2 });
|
||||
set_main_widget(widget);
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
|||
|
||||
auto widget = GUI::Widget::construct();
|
||||
widget->set_fill_with_background_color(true);
|
||||
widget->set_layout(make<GUI::VBoxLayout>());
|
||||
widget->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
widget->layout()->set_spacing(0);
|
||||
window->set_main_widget(widget);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue