QWidgetTextControl: implement support for Qt::ImAnchorRectangle

Implement support in QWidgetTextControl for the new enum
Qt::ImAnchorRectangle.

Change-Id: I7978915454a6dd93b2f491ed15619016cda85c7e
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
This commit is contained in:
Richard Moe Gustavsen 2016-03-21 13:38:46 +01:00
parent 10758c5af2
commit 07a19c12a3

View File

@ -2073,6 +2073,8 @@ QVariant QWidgetTextControl::inputMethodQuery(Qt::InputMethodQuery property, QVa
switch(property) {
case Qt::ImCursorRectangle:
return cursorRect();
case Qt::ImAnchorRectangle:
return d->rectForPosition(d->cursor.anchor());
case Qt::ImFont:
return QVariant(d->cursor.charFormat().font());
case Qt::ImCursorPosition: