From cdaf3d12ebe53e97344f766b92555a4ddd7e93d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Fri, 3 Aug 2018 00:56:41 +0300 Subject: [PATCH] added wxQT declaration of wxGUIAppTraits --- include/wx/msw/apptrait.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/wx/msw/apptrait.h b/include/wx/msw/apptrait.h index b818a132a0..4d6c29abc4 100644 --- a/include/wx/msw/apptrait.h +++ b/include/wx/msw/apptrait.h @@ -87,6 +87,31 @@ public: virtual bool WriteToStderr(const wxString& WXUNUSED(text)) { return false; } }; +#elif defined(__WXQT__) + +class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase +{ +public: + virtual wxEventLoopBase *CreateEventLoop(); + virtual void *BeforeChildWaitLoop() { return NULL; } + virtual void AfterChildWaitLoop(void*) { } +#if wxUSE_TIMER + virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); +#endif + +#if wxUSE_THREADS + virtual bool DoMessageFromThreadWait() { return true; } + virtual WXDWORD WaitForThread(WXHANDLE hThread, int WXUNUSED(flags)) + { return DoSimpleWaitForThread(hThread); } +#endif // wxUSE_THREADS + virtual wxPortId GetToolkitVersion(int *majVer = NULL, + int *minVer = NULL, + int *microVer = NULL) const; + + virtual bool CanUseStderr() { return false; } + virtual bool WriteToStderr(const wxString&) { return false; } +}; + #endif #endif // wxUSE_GUI