1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 11:15:11 +00:00

LibGUI: Set default value of LinkLabel text argument to a null string

The regular Label also does this, being able to call the constructor
with no arguments is required for REGISTER_WIDGET(GUI, LinkLabel).
This commit is contained in:
Linus Groh 2020-12-28 12:42:35 +01:00 committed by Andreas Kling
parent 21bc8cfe8f
commit a514f2cbfd

View file

@ -37,7 +37,7 @@ public:
Function<void()> on_click;
private:
explicit LinkLabel(String);
explicit LinkLabel(String text = {});
virtual void mousedown_event(MouseEvent&) override;
virtual void paint_event(PaintEvent&) override;