mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
CObject: Add custom_event() virtual.
This way you can just override custom_event() to catch CCustomEvent instead of having to filter the entire event stream with event(). :^)
This commit is contained in:
parent
1ecb7462b7
commit
a634fab3c4
2 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
class CEvent;
|
||||
class CChildEvent;
|
||||
class CCustomEvent;
|
||||
class CTimerEvent;
|
||||
|
||||
class CObject : public Weakable<CObject> {
|
||||
|
@ -59,6 +60,7 @@ public:
|
|||
protected:
|
||||
virtual void timer_event(CTimerEvent&);
|
||||
virtual void child_event(CChildEvent&);
|
||||
virtual void custom_event(CCustomEvent&);
|
||||
|
||||
private:
|
||||
CObject* m_parent { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue