From 45c25ffecd99fedb6afa871e86c6d1f3facb332d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Feb 2020 10:31:26 +0100 Subject: LibGUI: Use Core::Object::add() a whole bunch --- Libraries/LibGUI/AboutDialog.cpp | 12 ++++++------ Libraries/LibGUI/AbstractButton.cpp | 2 +- Libraries/LibGUI/ColorPicker.cpp | 12 ++++++------ Libraries/LibGUI/ComboBox.cpp | 2 +- Libraries/LibGUI/FilePicker.cpp | 34 +++++++++++++++++----------------- Libraries/LibGUI/InputBox.cpp | 14 +++++++------- Libraries/LibGUI/MessageBox.cpp | 12 ++++++------ Libraries/LibGUI/ScrollBar.cpp | 2 +- Libraries/LibGUI/Slider.h | 4 ++-- Libraries/LibGUI/SpinBox.cpp | 8 ++++---- Libraries/LibGUI/ToolBar.cpp | 2 +- 11 files changed, 52 insertions(+), 52 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibGUI/AboutDialog.cpp b/Libraries/LibGUI/AboutDialog.cpp index 2a6982ffe5..4a0087307f 100644 --- a/Libraries/LibGUI/AboutDialog.cpp +++ b/Libraries/LibGUI/AboutDialog.cpp @@ -47,22 +47,22 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Core:: widget->set_fill_with_background_color(true); widget->set_layout(make()); - auto left_container = Widget::construct(widget.ptr()); + auto left_container = widget->add(); left_container->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); left_container->set_preferred_size(48, 0); left_container->set_layout(make()); - auto icon_label = Label::construct(left_container); + auto icon_label = left_container->add