commit 4b15d64f5172f622ec9747f25635a822aef725d3
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Nov 26 20:17:57 2020 +0100

    Remove deprecated enum value with Qt5
---
 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-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to