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:
parent
60530a7cd9
commit
81a5c4fc56
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue