summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qeventdispatcher_qpa_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qeventdispatcher_qpa_p.h')
-rw-r--r--src/gui/kernel/qeventdispatcher_qpa_p.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/kernel/qeventdispatcher_qpa_p.h b/src/gui/kernel/qeventdispatcher_qpa_p.h
index c145e389f6..74522477e8 100644
--- a/src/gui/kernel/qeventdispatcher_qpa_p.h
+++ b/src/gui/kernel/qeventdispatcher_qpa_p.h
@@ -53,13 +53,21 @@
// We mean it.
//
+#if defined(Q_OS_UNIX)
#include "private/qeventdispatcher_unix_p.h"
+#define EVENTDISPATCHERBASE QEventDispatcherUNIX
+#define EVENTDISPATCHERBASEPRIVATE QEventDispatcherUNIXPrivate
+#elif defined(Q_OS_WIN)
+#include "private/qeventdispatcher_win_p.h"
+#define EVENTDISPATCHERBASE QEventDispatcherWin32
+#define EVENTDISPATCHERBASEPRIVATE QEventDispatcherWin32Private
+#endif
QT_BEGIN_NAMESPACE
class QEventDispatcherQPAPrivate;
-class QEventDispatcherQPA : public QEventDispatcherUNIX
+class QEventDispatcherQPA : public EVENTDISPATCHERBASE
{
Q_OBJECT
Q_DECLARE_PRIVATE(QEventDispatcherQPA)