Compilation fix with Qt < 5.7

Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is
used to answer a query from the IM machinery, there is no need for
it with older Qt versions.

(cherry picked from commit 6260689fd5)
This commit is contained in:
Jean-Marc Lasgouttes 2024-04-03 12:39:09 +02:00
parent 0ac87a2beb
commit 0cd169d6ba

View File

@ -1422,10 +1422,12 @@ QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
return QVariant(d->im_cursor_rect_);
break;
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
case Qt::ImAnchorRectangle: {
return QVariant(d->im_anchor_rect_);
break;
}
#endif
default:
return QWidget::inputMethodQuery(query);
}