1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +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:
Andreas Kling 2019-03-16 12:57:04 +01:00
parent 955a0ff477
commit eb610b309e
11 changed files with 22 additions and 13 deletions

View file

@ -22,11 +22,11 @@ public:
TextAlignment text_alignment() const { return m_text_alignment; }
void set_text_alignment(TextAlignment text_alignment) { m_text_alignment = text_alignment; }
virtual const char* class_name() const override { return "GLabel"; }
private:
virtual void paint_event(GPaintEvent&) override;
virtual const char* class_name() const override { return "GLabel"; }
String m_text;
RetainPtr<GraphicsBitmap> m_icon;
TextAlignment m_text_alignment { TextAlignment::Center };