#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
foreach (QPlatformScreen *screen, mDisplay->screens())
screenAdded(screen);
+
+ mInputContext = QPlatformInputContextFactory::create();
}
QPlatformNativeInterface * QWaylandIntegration::nativeInterface() const
{
return QWaylandDrag::instance(mDisplay);
}
+
+QPlatformInputContext *QWaylandIntegration::inputContext() const
+{
+ return mInputContext;
+}
QPlatformDrag *drag() const;
+ QPlatformInputContext *inputContext() const;
+
private:
QPlatformFontDatabase *mFontDb;
QAbstractEventDispatcher *mEventDispatcher;
QWaylandDisplay *mDisplay;
QPlatformNativeInterface *mNativeInterface;
+ QPlatformInputContext *mInputContext;
};
QT_END_NAMESPACE