X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2a19d941d7796fcc82e752b036eea5f8ed0fa2c..4d876ee3f727afa0d79aa5f7b03bf9a59673bef6:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index ae1da9917b..b5ce8d830c 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -49,9 +49,7 @@ public: void SetOwner(wxEvtHandler *owner, int id = -1) { m_owner = owner; m_idTimer = id; } -#ifdef __DARWIN__ - virtual ~wxTimerBase() { } -#endif + virtual ~wxTimerBase(); // working with the timer // ---------------------- @@ -111,8 +109,6 @@ protected: #include "wx/gtk/timer.h" #elif defined(__WXMGL__) #include "wx/mgl/timer.h" -#elif defined(__WXQT__) - #include "wx/qt/timer.h" #elif defined(__WXMAC__) #include "wx/mac/timer.h" #elif defined(__WXPM__) @@ -169,6 +165,9 @@ public: // accessors int GetInterval() const { return m_interval; } + // implement the base class pure virtual + virtual wxEvent *Clone() const { return new wxTimerEvent(*this); } + private: int m_interval;