Report input method hints for QGraphicsTextItem
Task-number: QTBUG-34893 Change-Id: Iabf3b8be4896dadf07e4440f2cffc40aede4a85b Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>bb10
parent
52fc0a95a1
commit
55a4db4f47
|
|
@ -10307,7 +10307,9 @@ void QGraphicsTextItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
|||
QVariant QGraphicsTextItem::inputMethodQuery(Qt::InputMethodQuery query) const
|
||||
{
|
||||
QVariant v;
|
||||
if (dd->control)
|
||||
if (query == Qt::ImHints)
|
||||
v = int(inputMethodHints());
|
||||
else if (dd->control)
|
||||
v = dd->control->inputMethodQuery(query);
|
||||
if (v.type() == QVariant::RectF)
|
||||
v = v.toRectF().translated(-dd->controlOffset());
|
||||
|
|
|
|||
Loading…
Reference in New Issue