diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:37:38 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:37:38 +0200 |
commit | 81a5c4fc560a5c4d2e5d96438bd9e04817c9155b (patch) | |
tree | c4d3b91d749930bd7e5c794e5074e801a2b44657 /Libraries/LibGUI/GButton.h | |
parent | 60530a7cd9a9514b5071965f6ce046e4b45f210f (diff) | |
download | serenity-81a5c4fc560a5c4d2e5d96438bd9e04817c9155b.zip |
GButton: Make the constructors protected in favor of construct()
Diffstat (limited to 'Libraries/LibGUI/GButton.h')
-rw-r--r-- | Libraries/LibGUI/GButton.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GButton.h b/Libraries/LibGUI/GButton.h index 6238834eeb..33e24a81dc 100644 --- a/Libraries/LibGUI/GButton.h +++ b/Libraries/LibGUI/GButton.h @@ -12,8 +12,6 @@ class GAction; class GButton : public GAbstractButton { C_OBJECT(GButton) public: - GButton(const StringView& text, GWidget* parent); - explicit GButton(GWidget* parent); virtual ~GButton() override; void set_icon(RefPtr<GraphicsBitmap>&&); @@ -39,6 +37,8 @@ public: void set_focusable(bool b) { m_focusable = b; } protected: + GButton(const StringView& text, GWidget* parent); + explicit GButton(GWidget* parent); virtual void paint_event(GPaintEvent&) override; private: |