mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +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
|
@ -62,8 +62,8 @@ public:
|
|||
void set_focusable(bool b) { m_focusable = b; }
|
||||
|
||||
protected:
|
||||
Button(const StringView& text, Widget* parent);
|
||||
explicit Button(Widget* parent);
|
||||
Button(const StringView& text, Widget* parent = nullptr);
|
||||
explicit Button(Widget* parent = nullptr);
|
||||
virtual void paint_event(PaintEvent&) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue