mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 18:52:56 +00:00
GButton: Convert most code to using ObjectPtr for GButton
This commit is contained in:
parent
55a6e4ac0b
commit
45cfd57f6e
Notes:
sideshowbarker
2024-07-19 12:01:11 +09:00
Author: https://github.com/awesomekling
Commit: 45cfd57f6e
20 changed files with 38 additions and 38 deletions
|
@ -51,7 +51,7 @@ void GInputBox::build()
|
|||
button_container_inner->set_layout(make<GBoxLayout>(Orientation::Horizontal));
|
||||
button_container_inner->layout()->set_spacing(8);
|
||||
|
||||
m_cancel_button = new GButton(button_container_inner);
|
||||
m_cancel_button = GButton::construct(button_container_inner);
|
||||
m_cancel_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_cancel_button->set_preferred_size(0, 20);
|
||||
m_cancel_button->set_text("Cancel");
|
||||
|
@ -60,7 +60,7 @@ void GInputBox::build()
|
|||
done(ExecCancel);
|
||||
};
|
||||
|
||||
m_ok_button = new GButton(button_container_inner);
|
||||
m_ok_button = GButton::construct(button_container_inner);
|
||||
m_ok_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_ok_button->set_preferred_size(0, 20);
|
||||
m_ok_button->set_text("OK");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue