mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
GButton: Make the constructors protected in favor of construct()
This commit is contained in:
parent
60530a7cd9
commit
81a5c4fc56
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,6 @@ class GAction;
|
||||||
class GButton : public GAbstractButton {
|
class GButton : public GAbstractButton {
|
||||||
C_OBJECT(GButton)
|
C_OBJECT(GButton)
|
||||||
public:
|
public:
|
||||||
GButton(const StringView& text, GWidget* parent);
|
|
||||||
explicit GButton(GWidget* parent);
|
|
||||||
virtual ~GButton() override;
|
virtual ~GButton() override;
|
||||||
|
|
||||||
void set_icon(RefPtr<GraphicsBitmap>&&);
|
void set_icon(RefPtr<GraphicsBitmap>&&);
|
||||||
|
@ -39,6 +37,8 @@ public:
|
||||||
void set_focusable(bool b) { m_focusable = b; }
|
void set_focusable(bool b) { m_focusable = b; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
GButton(const StringView& text, GWidget* parent);
|
||||||
|
explicit GButton(GWidget* parent);
|
||||||
virtual void paint_event(GPaintEvent&) override;
|
virtual void paint_event(GPaintEvent&) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue