From eb610b309e7f7cef88debaea30ac1d42689dc0a7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 16 Mar 2019 12:57:04 +0100 Subject: 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. --- LibGUI/GToolBar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LibGUI/GToolBar.h') 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&&); void add_separator(); -private: virtual const char* class_name() const override { return "GToolBar"; } + +private: virtual void paint_event(GPaintEvent&) override; struct Item { -- cgit v1.2.3