From: Joona Petrell Date: Mon, 12 Sep 2011 18:48:40 +0000 (+0300) Subject: Pass Qt::ImQueryInput instead of Qt::CursorRectangle in QSgItem::updateMicroFocus... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=133e9ef8774ddfb7c6f2ced2c4dc40efde8573d5;p=konrad%2Fqtdeclarative.git 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 --- 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