From 462c75be9e9cfde6263e85fd846f7b5b3fae0b0a Mon Sep 17 00:00:00 2001 From: Sami Nurmenniemi Date: Wed, 7 Jun 2017 12:24:56 +0300 Subject: Add support for input contexts to offscreen platform This is needed to use qtvirtualkeyboard with offscreen platform [ChangeLog][Platform Specific Changes] Input context support to offscreen platform Task-number: QTBUG-60268 Change-Id: Id24dc8b0461036923df2c1624bcb913d28e0819e Reviewed-by: Simon Hausmann --- src/plugins/platforms/offscreen/qoffscreenintegration.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/platforms/offscreen/qoffscreenintegration.h') diff --git a/src/plugins/platforms/offscreen/qoffscreenintegration.h b/src/plugins/platforms/offscreen/qoffscreenintegration.h index df647a31ef..569ec8fc28 100644 --- a/src/plugins/platforms/offscreen/qoffscreenintegration.h +++ b/src/plugins/platforms/offscreen/qoffscreenintegration.h @@ -54,6 +54,7 @@ public: QOffscreenIntegration(); ~QOffscreenIntegration(); + void initialize() Q_DECL_OVERRIDE; bool hasCapability(QPlatformIntegration::Capability cap) const Q_DECL_OVERRIDE; QPlatformWindow *createPlatformWindow(QWindow *window) const Q_DECL_OVERRIDE; @@ -61,6 +62,8 @@ public: #ifndef QT_NO_DRAGANDDROP QPlatformDrag *drag() const Q_DECL_OVERRIDE; #endif + + QPlatformInputContext *inputContext() const Q_DECL_OVERRIDE; QPlatformServices *services() const Q_DECL_OVERRIDE; QPlatformFontDatabase *fontDatabase() const Q_DECL_OVERRIDE; @@ -73,6 +76,7 @@ private: #ifndef QT_NO_DRAGANDDROP QScopedPointer m_drag; #endif + QScopedPointer m_inputContext; QScopedPointer m_services; }; -- cgit v1.2.3