diff options
Diffstat (limited to 'Applications/PaintBrush/main.cpp')
-rw-r--r-- | Applications/PaintBrush/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Applications/PaintBrush/main.cpp b/Applications/PaintBrush/main.cpp index a4f6680df1..bb6e42b876 100644 --- a/Applications/PaintBrush/main.cpp +++ b/Applications/PaintBrush/main.cpp @@ -63,15 +63,15 @@ int main(int argc, char** argv) horizontal_container->set_layout(make<GUI::HorizontalBoxLayout>()); horizontal_container->layout()->set_spacing(0); - new ToolboxWidget(horizontal_container); + horizontal_container->add<ToolboxWidget>(); - auto vertical_container = GUI::Widget::construct(horizontal_container.ptr()); + auto vertical_container = horizontal_container->add<GUI::Widget>(); vertical_container->set_layout(make<GUI::VerticalBoxLayout>()); vertical_container->layout()->set_spacing(0); - auto paintable_widget = PaintableWidget::construct(vertical_container); + auto paintable_widget = vertical_container->add<PaintableWidget>(); paintable_widget->set_focus(true); - PaletteWidget::construct(*paintable_widget, vertical_container); + vertical_container->add<PaletteWidget>(*paintable_widget); window->show(); |