mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09: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:
parent
21bc8cfe8f
commit
a514f2cbfd
Notes:
sideshowbarker
2024-07-19 00:27:17 +09:00
Author: https://github.com/linusg
Commit: a514f2cbfd
Pull-request: https://github.com/SerenityOS/serenity/pull/4626
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/devsh0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue