summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_lite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qapplication_lite.cpp')
-rw-r--r--src/gui/kernel/qapplication_lite.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_lite.cpp b/src/gui/kernel/qapplication_lite.cpp
index 108edc12d1..341217c3f5 100644
--- a/src/gui/kernel/qapplication_lite.cpp
+++ b/src/gui/kernel/qapplication_lite.cpp
@@ -47,6 +47,7 @@
#endif
#ifdef Q_OS_NACL
#include "private/qeventdispatcher_nacl_p.h"
+#include "private/qeventdispatcher_pepper_p.h"
#endif
#include "private/qeventdispatcher_unix_p.h"
#ifndef QT_NO_CURSOR
@@ -91,7 +92,10 @@ void QApplicationPrivate::createEventDispatcher()
eventDispatcher = new QEventDispatcherGlib(q);
else
#elif defined(Q_OS_NACL)
- eventDispatcher = new QEventDispatcherNaCl(q);
+ if (QEventDispatcherPepper::hasPepperSupport())
+ eventDispatcher = new QEventDispatcherPepper();
+ else
+ eventDispatcher = new QEventDispatcherNaCl(q);
#else
eventDispatcher = new QEventDispatcherUNIX(q);
#endif