1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

GButton: Make the constructors protected in favor of construct()

This commit is contained in:
Andreas Kling 2019-09-21 19:37:38 +02:00
parent 60530a7cd9
commit 81a5c4fc56

View file

@ -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: