[LyX/master] Guisearch Qt4 compatibility

Pavel Sanda sanda at lyx.org
Sun Feb 14 21:41:39 UTC 2021


commit b497baeea3eba96a098efdeb20ad6ef0da95a58c
Author: Pavel Sanda <sanda at 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
 	}
 }
 


More information about the lyx-cvs mailing list