mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibGUI: Don't require passing a parent to widget constructors
This is a step towards using Core::Object::add<T> more, which takes care of parenting the newly created child automatically.
This commit is contained in:
parent
d9e459293b
commit
428582e805
23 changed files with 35 additions and 35 deletions
|
@ -38,8 +38,8 @@ public:
|
|||
virtual void click() override;
|
||||
|
||||
private:
|
||||
CheckBox(const StringView&, Widget* parent);
|
||||
explicit CheckBox(Widget* parent);
|
||||
CheckBox(const StringView&, Widget* parent = nullptr);
|
||||
explicit CheckBox(Widget* parent = nullptr);
|
||||
|
||||
// These don't make sense for a check box, so hide them.
|
||||
using AbstractButton::auto_repeat_interval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue