Le 27/11/2020 à 09:57, Jean-Marc Lasgouttes a écrit :
commit 4b15d64f5172f622ec9747f25635a822aef725d3
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Thu Nov 26 20:17:57 2020 +0100
Remove deprecated enum value with Qt5
Riki, this is useful in branch too.
JMarc
---
src/frontends/qt/GuiWorkArea.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index 99e88bb..1c76928 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -1345,7 +1345,11 @@ QVariant
GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
switch (query) {
// this is the CJK-specific composition window position and
// the context menu position when the menu key is pressed.
+#if (QT_VERSION < 0x050000)
case Qt::ImMicroFocus: {
+#else
+ case Qt::ImCursorRectangle: {
+#endif
CaretGeometry const & cg = bufferView().caretGeometry();
return QRect(cg.left - 10 * (d->preedit_lines_ != 1),
cg.top + cg.height() * d->preedit_lines_,
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel