aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgtextinput.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-09-07 23:19:14 +0300
committerLars Knoll <lars.knoll@nokia.com>2011-09-08 10:34:45 +0200
commite4f546d5b0814066370a243aa22f0926a6668edc (patch)
treeed1623f0ca3124cd2d0a832b9849d674d40b37a1 /src/declarative/items/qsgtextinput.cpp
parentb11d3919936e710162c9ffa405152b8499111b1b (diff)
Handle ImEnabled and ImHints input method queries in QSGTextInput and QSGTextEdit
Change-Id: I348f924f2987f1c163c89ce4eef18fe864ec665d Reviewed-on: http://codereview.qt-project.org/4407 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/declarative/items/qsgtextinput.cpp')
-rw-r--r--src/declarative/items/qsgtextinput.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/items/qsgtextinput.cpp b/src/declarative/items/qsgtextinput.cpp
index 9974094e5b..9014cb1615 100644
--- a/src/declarative/items/qsgtextinput.cpp
+++ b/src/declarative/items/qsgtextinput.cpp
@@ -1349,6 +1349,10 @@ QVariant QSGTextInput::inputMethodQuery(Qt::InputMethodQuery property) const
{
Q_D(const QSGTextInput);
switch(property) {
+ case Qt::ImEnabled:
+ return QVariant((bool)(flags() & ItemAcceptsInputMethod));
+ case Qt::ImHints:
+ return QVariant((int)inputMethodHints());
case Qt::ImMicroFocus:
return cursorRectangle();
case Qt::ImFont: