summaryrefslogtreecommitdiff
path: root/Widgets/Object.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-14 01:23:01 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-14 01:23:01 +0200
commit959a1b0750328b59b25953bec7a9e8da95b3e058 (patch)
treeb86c27ac2592d2083109493ac0cf056c526180a9 /Widgets/Object.h
parent3ebea059961ec027ee0298e38201aa43f7e9451c (diff)
downloadserenity-959a1b0750328b59b25953bec7a9e8da95b3e058.zip
Close the MsgBox when clicking the OK button.
This feels vaguely crashy. I haven't tested window/widget destruction before so there's sure to be bugs.
Diffstat (limited to 'Widgets/Object.h')
-rw-r--r--Widgets/Object.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Widgets/Object.h b/Widgets/Object.h
index 8bf27c8d19..f945350b88 100644
--- a/Widgets/Object.h
+++ b/Widgets/Object.h
@@ -24,12 +24,14 @@ public:
void stopTimer();
bool hasTimer() const { return m_timerID; }
-private:
- virtual void timerEvent(TimerEvent&);
-
void addChild(Object&);
void removeChild(Object&);
+ void deleteLater();
+
+private:
+ virtual void timerEvent(TimerEvent&);
+
Object* m_parent { nullptr };
int m_timerID { 0 };