commit b497baeea3eba96a098efdeb20ad6ef0da95a58c
Author: Pavel Sanda <sa...@lyx.org>
Date:   Sun Feb 14 22:44:33 2021 +0100

    Guisearch Qt4 compatibility
---
 src/frontends/qt/GuiSearch.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp
index f61c6c3..d44a7bc 100644
--- a/src/frontends/qt/GuiSearch.cpp
+++ b/src/frontends/qt/GuiSearch.cpp
@@ -162,7 +162,11 @@ void GuiSearchWidget::findBufferChanged()
        docstring search = theClipboard().getFindBuffer();
        if (!search.empty()) {
                LYXERR(Debug::CLIPBOARD, "from findbuffer: " << search);
+#if QT_VERSION > 0x050000
                findCO->setCurrentText(toqstr(search));
+#else
+               findCO->setEditText(toqstr(search));
+#endif
        }
 }
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to