mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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
Notes:
sideshowbarker
2024-07-19 09:09:03 +09:00
Author: https://github.com/awesomekling
Commit: 428582e805
23 changed files with 35 additions and 35 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
NonnullRefPtr<Gfx::Font> font_for_index(const ModelIndex&) const;
|
||||
|
||||
protected:
|
||||
explicit AbstractView(Widget* parent);
|
||||
explicit AbstractView(Widget* parent = nullptr);
|
||||
virtual ~AbstractView() override;
|
||||
|
||||
virtual void mousedown_event(MouseEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue