diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 12:57:04 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 12:57:04 +0100 |
commit | eb610b309e7f7cef88debaea30ac1d42689dc0a7 (patch) | |
tree | 2c7530edc0bd1c8a4b086020d99b9f8f25f023fc /LibGUI/GToolBar.h | |
parent | 955a0ff4774c25e39b89030be902f90d2e9f3162 (diff) | |
download | serenity-eb610b309e7f7cef88debaea30ac1d42689dc0a7.zip |
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.
Diffstat (limited to 'LibGUI/GToolBar.h')
-rw-r--r-- | LibGUI/GToolBar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGUI/GToolBar.h b/LibGUI/GToolBar.h index 483eac238f..6834664498 100644 --- a/LibGUI/GToolBar.h +++ b/LibGUI/GToolBar.h @@ -12,8 +12,9 @@ public: void add_action(Retained<GAction>&&); void add_separator(); -private: virtual const char* class_name() const override { return "GToolBar"; } + +private: virtual void paint_event(GPaintEvent&) override; struct Item { |