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:
parent
10758c5af2
commit
07a19c12a3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user