1
Fork 0
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:
Andreas Kling 2019-09-21 16:15:11 +02:00
parent 83b5f6c11a
commit b78225941d
4 changed files with 6 additions and 5 deletions

View file

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