mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibGUI: Make class_name() public so you can always call it.
I found myself having to cast to GWidget* all the time when writing some generic debugging code that just wanted to dump widget info.
This commit is contained in:
@@ -17,13 +17,14 @@ public:
|
||||
|
||||
Function<void(GCheckBox&, bool)> on_change;
|
||||
|
||||
virtual const char* class_name() const override { return "GCheckBox"; }
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void mouseup_event(GMouseEvent&) override;
|
||||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
virtual const char* class_name() const override { return "GCheckBox"; }
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
String m_caption;
|
||||
|
||||
Reference in New Issue
Block a user