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

LibGUI: Convert remaining random little things to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 19:39:37 +02:00
parent 81a5c4fc56
commit 409494193e
11 changed files with 15 additions and 13 deletions

View file

@ -9,7 +9,6 @@ class GTextEditor;
class GComboBox : public GWidget {
C_OBJECT(GComboBox)
public:
explicit GComboBox(GWidget* parent = nullptr);
virtual ~GComboBox() override;
String text() const;
@ -33,6 +32,7 @@ public:
Function<void()> on_return_pressed;
protected:
explicit GComboBox(GWidget* parent = nullptr);
virtual void resize_event(GResizeEvent&) override;
private:

View file

@ -5,7 +5,6 @@
class GStackWidget : public GWidget {
C_OBJECT(GStackWidget)
public:
explicit GStackWidget(GWidget* parent);
virtual ~GStackWidget() override;
GWidget* active_widget() { return m_active_widget.ptr(); }
@ -15,6 +14,7 @@ public:
Function<void(GWidget*)> on_active_widget_change;
protected:
explicit GStackWidget(GWidget* parent);
virtual void child_event(CChildEvent&) override;
virtual void resize_event(GResizeEvent&) override;