mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09: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
|
@ -23,7 +23,7 @@ int main(int argc, char** argv)
|
|||
auto label = GLabel::construct(main_widget);
|
||||
label->set_text("Hello\nWorld!");
|
||||
|
||||
auto* button = new GButton(main_widget);
|
||||
auto button = GButton::construct(main_widget);
|
||||
button->set_text("Good-bye");
|
||||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
button->set_preferred_size(0, 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue