From 133e9ef8774ddfb7c6f2ced2c4dc40efde8573d5 Mon Sep 17 00:00:00 2001 From: Joona Petrell Date: Mon, 12 Sep 2011 21:48:40 +0300 Subject: [PATCH] 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 Reviewed-by: Lars Knoll --- src/declarative/items/qsgitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/items/qsgitem.cpp b/src/declarative/items/qsgitem.cpp index f3de1a6..a1e4317 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 -- 2.7.4