Guisearch Qt4 compatibility

This commit is contained in:
Pavel Sanda 2021-02-14 22:44:33 +01:00
parent d65e7a8c87
commit b497baeea3

View File

@ -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
}
}