summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylandintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandintegration.cpp')
-rw-r--r--src/plugins/platforms/wayland/qwaylandintegration.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandintegration.cpp b/src/plugins/platforms/wayland/qwaylandintegration.cpp
index e17c2f8d95..57baa57684 100644
--- a/src/plugins/platforms/wayland/qwaylandintegration.cpp
+++ b/src/plugins/platforms/wayland/qwaylandintegration.cpp
@@ -58,6 +58,9 @@
#include <QtGui/QSurfaceFormat>
#include <QtGui/QOpenGLContext>
+#include <private/qplatforminputcontextfactory_qpa_p.h>
+#include <qplatforminputcontext_qpa.h>
+
#ifdef QT_WAYLAND_GL_SUPPORT
#include "gl_integration/qwaylandglintegration.h"
#endif
@@ -72,6 +75,8 @@ QWaylandIntegration::QWaylandIntegration()
foreach (QPlatformScreen *screen, mDisplay->screens())
screenAdded(screen);
+
+ mInputContext = QPlatformInputContextFactory::create();
}
QPlatformNativeInterface * QWaylandIntegration::nativeInterface() const
@@ -139,3 +144,8 @@ QPlatformDrag *QWaylandIntegration::drag() const
{
return QWaylandDrag::instance(mDisplay);
}
+
+QPlatformInputContext *QWaylandIntegration::inputContext() const
+{
+ return mInputContext;
+}