diff options
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 468e8c3bfd..81124473bd 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -50,6 +50,9 @@ #include "qeventdispatcher_glib_qpa_p.h" #endif #include "qeventdispatcher_qpa_p.h" +#ifdef Q_OS_MAC +#include "qeventdispatcher_mac_p.h" +#endif #include <QtCore/QAbstractEventDispatcher> #include <QtCore/private/qcoreapplication_p.h> @@ -245,7 +248,11 @@ void QGuiApplicationPrivate::createEventDispatcher() eventDispatcher = new QPAEventDispatcherGlib(q); else #endif - eventDispatcher = new QEventDispatcherQPA(q); +#ifdef Q_OS_MAC + eventDispatcher = new QEventDispatcherMac(q); +#else + eventDispatcher = new QEventDispatcherQPA(q); +#endif } void QGuiApplicationPrivate::init() |