mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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.
This commit is contained in:
parent
f89e39e403
commit
6260689fd5
@ -1422,10 +1422,12 @@ QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
|
|||||||
return QVariant(d->im_cursor_rect_);
|
return QVariant(d->im_cursor_rect_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
case Qt::ImAnchorRectangle: {
|
case Qt::ImAnchorRectangle: {
|
||||||
return QVariant(d->im_anchor_rect_);
|
return QVariant(d->im_anchor_rect_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return QWidget::inputMethodQuery(query);
|
return QWidget::inputMethodQuery(query);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user