diff options
author | Andrew Knight <andrew.knight@digia.com> | 2014-02-10 10:11:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-12 20:12:17 +0100 |
commit | 2eda13c965497e41bb2d031f7890979a819d6438 (patch) | |
tree | 0a1335f9345a2c95af030fea5aa767e31af29d2c /src/plugins/platforms/winrt/qwinrteventdispatcher.h | |
parent | 2b66a37a3e9b6528d5e398a2c1dad4611a38e1b4 (diff) |
WinRT: move most of GUI event dispatcher logic into core
The native event dispatcher is responsible for delivering callbacks
to non-GUI handlers, such as network socket listeners. So, the non-GUI
logic is moved into the core dispatcher so that the event loop works
better for apps (and test cases) which use QCoreApplication.
Change-Id: Ic5f7d939cf164198fd39aa5880e265ae560b39b4
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/plugins/platforms/winrt/qwinrteventdispatcher.h')
-rw-r--r-- | src/plugins/platforms/winrt/qwinrteventdispatcher.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/plugins/platforms/winrt/qwinrteventdispatcher.h b/src/plugins/platforms/winrt/qwinrteventdispatcher.h index 741007c7fa..612d5ff6e2 100644 --- a/src/plugins/platforms/winrt/qwinrteventdispatcher.h +++ b/src/plugins/platforms/winrt/qwinrteventdispatcher.h @@ -44,36 +44,17 @@ #include <QtCore/private/qeventdispatcher_winrt_p.h> -#include <wrl.h> - -namespace ABI { - namespace Windows { - namespace UI { - namespace Core { - struct ICoreDispatcher; - } - } - } -} - QT_BEGIN_NAMESPACE class QWinRTEventDispatcher : public QEventDispatcherWinRT { Q_OBJECT public: - explicit QWinRTEventDispatcher(ABI::Windows::UI::Core::ICoreDispatcher *dispatcher, QObject *parent = 0); + explicit QWinRTEventDispatcher(QObject *parent = 0); protected: - void interrupt(); bool hasPendingEvents(); - bool processEvents(QEventLoop::ProcessEventsFlags flags); - -private: - Microsoft::WRL::ComPtr<ABI::Windows::UI::Core::ICoreDispatcher> m_dispatcher; - bool m_interrupt; - - friend class QWinRTIntegration; + bool sendPostedEvents(QEventLoop::ProcessEventsFlags flags); }; QT_END_NAMESPACE |