mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +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:
parent
955a0ff477
commit
eb610b309e
11 changed files with 22 additions and 13 deletions
|
@ -12,8 +12,9 @@ public:
|
|||
String text() const;
|
||||
void set_text(String&&);
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "GStatusBar"; }
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
GLabel* m_label { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue