mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibGUI: Convert GGroupBox to ObjectPtr
This commit is contained in:
parent
4f4438c04c
commit
83b5f6c11a
5 changed files with 10 additions and 9 deletions
|
@ -100,7 +100,7 @@ GWindow* create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> co
|
|||
settings->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
settings->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto* radio_container = new GGroupBox("Bell Mode", settings);
|
||||
auto radio_container = GGroupBox::construct("Bell Mode", settings);
|
||||
radio_container->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
radio_container->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
radio_container->set_fill_with_background_color(true);
|
||||
|
@ -115,7 +115,7 @@ GWindow* create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> co
|
|||
terminal.set_should_beep(checked);
|
||||
};
|
||||
|
||||
auto* slider_container = new GGroupBox("Background Opacity", settings);
|
||||
auto slider_container = GGroupBox::construct("Background Opacity", settings);
|
||||
slider_container->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
slider_container->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
slider_container->set_fill_with_background_color(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue