mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 15:05:09 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -41,7 +41,7 @@ int main(int argc, char** argv)
|
|||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
widget->layout()->set_margins({ 2, 2, 2, 2 });
|
||||
|
||||
auto* sample_widget = new SampleWidget(widget);
|
||||
auto sample_widget = SampleWidget::construct(widget);
|
||||
|
||||
auto button = GButton::construct("Quit", widget);
|
||||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue