aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-09-12 21:48:40 +0300
committerQt by Nokia <qt-info@nokia.com>2011-09-15 10:22:43 +0200
commit133e9ef8774ddfb7c6f2ced2c4dc40efde8573d5 (patch)
tree3ae7c98dc85f97d4a6f1d61274f8f223ac294941 /src
parent6c17d70400e21127804bfafa7316e924cba551a2 (diff)
Pass Qt::ImQueryInput instead of Qt::CursorRectangle in QSgItem::updateMicroFocus function
QPlatformInputContext::update() function takes QInputMethodQueries flag as a parameter. When cursor rectangle changes many input method query attributes like cursor rectangle, cursor position, surrounding text, current selection and a position change as well. New composite query ImQueryInput encapsulates this. Change-Id: I83b17507f22fcbec0d8ed50588c67794d62f9495 Reviewed-on: http://codereview.qt-project.org/4741 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsgitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgitem.cpp b/src/declarative/items/qsgitem.cpp
index f3de1a6b3f..a1e43171de 100644
--- a/src/declarative/items/qsgitem.cpp
+++ b/src/declarative/items/qsgitem.cpp
@@ -2937,7 +2937,7 @@ void QSGItem::updateMicroFocus()
{
QInputPanel *p = qApp->inputPanel();
if (p->inputItem() == this)
- qApp->inputPanel()->update(Qt::ImCursorRectangle);
+ qApp->inputPanel()->update(Qt::ImQueryInput);
}
QVariant QSGItem::inputMethodQuery(Qt::InputMethodQuery query) const