X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..fd008b87e310c3c1ab42f9b79573cebecedad21c:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index 6a494be5ac..f835029b3c 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -49,8 +49,8 @@ public: void SetOwner(wxEvtHandler *owner, int id = -1) { m_owner = owner; m_idTimer = id; } -#ifdef __WXMAC_X__ - virtual ~wxTimerBase() {} // Added min for Mac X +#ifdef __DARWIN__ + virtual ~wxTimerBase() { } #endif // working with the timer @@ -109,8 +109,8 @@ protected: #include "wx/motif/timer.h" #elif defined(__WXGTK__) #include "wx/gtk/timer.h" -#elif defined(__WXQT__) - #include "wx/qt/timer.h" +#elif defined(__WXMGL__) + #include "wx/mgl/timer.h" #elif defined(__WXMAC__) #include "wx/mac/timer.h" #elif defined(__WXPM__) @@ -167,6 +167,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;