mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
GButton: Convert most code to using ObjectPtr for GButton
This commit is contained in:
parent
55a6e4ac0b
commit
45cfd57f6e
20 changed files with 38 additions and 38 deletions
|
@ -133,7 +133,7 @@ int main(int argc, char** argv)
|
|||
content_text->wrap_and_set_height();
|
||||
}
|
||||
|
||||
auto* menu_option = new GButton(menu);
|
||||
auto menu_option = GButton::construct(menu);
|
||||
menu_option->set_font(Font::default_font());
|
||||
menu_option->set_text(page.menu_name);
|
||||
menu_option->set_text_alignment(TextAlignment::CenterLeft);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue