mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Userland: Use Widget::add_spacer() everywhere
This commit is contained in:
parent
43dddafd16
commit
9561ec15f4
17 changed files with 23 additions and 23 deletions
|
@ -87,12 +87,12 @@ AddEventDialog::AddEventDialog(Core::DateTime date_time, Window* parent_window)
|
|||
starting_meridiem_combo.set_model(MeridiemListModel::create());
|
||||
starting_meridiem_combo.set_selected_index(0);
|
||||
|
||||
widget->layout()->add_spacer();
|
||||
widget->add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto& button_container = widget->add<GUI::Widget>();
|
||||
button_container.set_fixed_height(20);
|
||||
button_container.set_layout<GUI::HorizontalBoxLayout>();
|
||||
button_container.layout()->add_spacer();
|
||||
button_container.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
auto& ok_button = button_container.add<GUI::Button>(String::from_utf8_short_string("OK"sv));
|
||||
ok_button.set_fixed_size(80, 20);
|
||||
ok_button.on_click = [this](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue