From 8f5fdbc90d0aff5f97a102fe9b441db6ab64f85f Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 8 Jun 2018 14:45:24 +1000 Subject: [PATCH] Add old QHelpSearchEngine search function for Qt<5.9 builds --- sleepyhead/help.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sleepyhead/help.cpp b/sleepyhead/help.cpp index c3385f77..2a9a7844 100644 --- a/sleepyhead/help.cpp +++ b/sleepyhead/help.cpp @@ -168,7 +168,14 @@ void Help::on_searchBar_returnPressed() QHelpSearchEngine * search = helpEngine->searchEngine(); QString str=ui->searchBar->text(); + + #if QT_VERSION < QT_VERSION_CHECK(5,10,0) + QList query; + query.push_back(QHelpSearchQuery(QHelpSearchQuery::FUZZY, QStringList(str))); + search->search(query); +#else search->search(str); +#endif } void Help::indexingFinished()