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:
Andreas Kling 2020-02-23 09:01:05 +01:00
commit 428582e805
Notes: sideshowbarker 2024-07-19 09:09:03 +09:00
23 changed files with 35 additions and 35 deletions

View file

@ -60,8 +60,8 @@ public:
void set_auto_repeat_interval(int interval) { m_auto_repeat_interval = interval; }
protected:
explicit AbstractButton(Widget* parent);
AbstractButton(const StringView&, Widget* parent);
explicit AbstractButton(Widget* parent = nullptr);
AbstractButton(const StringView&, Widget* parent = nullptr);
virtual void mousedown_event(MouseEvent&) override;
virtual void mousemove_event(MouseEvent&) override;