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>
{
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