mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibGUI: Convert GSpinBox to ObjectPtr
This commit is contained in:
parent
83b5f6c11a
commit
b78225941d
4 changed files with 6 additions and 5 deletions
|
@ -8,7 +8,6 @@ class GTextEditor;
|
|||
class GSpinBox : public GWidget {
|
||||
C_OBJECT(GSpinBox)
|
||||
public:
|
||||
GSpinBox(GWidget* parent = nullptr);
|
||||
virtual ~GSpinBox() override;
|
||||
|
||||
int value() const { return m_value; }
|
||||
|
@ -23,6 +22,8 @@ public:
|
|||
Function<void(int value)> on_change;
|
||||
|
||||
protected:
|
||||
explicit GSpinBox(GWidget* parent = nullptr);
|
||||
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue