summaryrefslogtreecommitdiffstats
path: root/lib/render_widget_host_view_qt_delegate.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-10-24 18:06:14 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-25 20:50:57 +0200
commit44383cc1e34b6fae069af35579c5267221d90ad4 (patch)
tree547779842f7e83e3412873f3e04c125c3b6c4335 /lib/render_widget_host_view_qt_delegate.h
parent01d4d6964665957ba1440f763545f6fbde73c2e5 (diff)
Implement inputMethodQuery
This makes it possible on touch devices to use a simple virtual keyboard input method that synthesizes key events. This is the minimal requirement to make the the boot2Qt Keyboard component functional. For more advanced input methods and the widget tests we will need to override inputMethodEvent as well. Change-Id: If9228ee6b1730d72e7424bdb33a9a9c46654507f Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/render_widget_host_view_qt_delegate.h')
-rw-r--r--lib/render_widget_host_view_qt_delegate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/render_widget_host_view_qt_delegate.h b/lib/render_widget_host_view_qt_delegate.h
index f84d1a085..e80d6fbb5 100644
--- a/lib/render_widget_host_view_qt_delegate.h
+++ b/lib/render_widget_host_view_qt_delegate.h
@@ -65,6 +65,7 @@ class QEvent;
class QPainter;
class QQuickWindow;
class QSGNode;
+class QVariant;
class QWindow;
QT_END_NAMESPACE
@@ -87,6 +88,7 @@ public:
virtual void update(const QRect& rect = QRect()) = 0;
virtual void updateCursor(const QCursor &) = 0;
virtual void resize(int width, int height) = 0;
+ virtual void inputMethodStateChanged(bool editorVisible) = 0;
protected:
RenderWidgetHostViewQtDelegate();
@@ -97,6 +99,7 @@ protected:
void fetchBackingStore();
void notifyResize();
bool forwardEvent(QEvent*);
+ QVariant forwardInputMethodQuery(Qt::InputMethodQuery query) const;
private:
void setView(RenderWidgetHostViewQt*);