Add old QHelpSearchEngine search function for Qt<5.9 builds

This commit is contained in:
Mark Watkins 2018-06-08 14:45:24 +10:00
parent 28d6827664
commit 8f5fdbc90d

View File

@ -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<QHelpSearchQuery> query;
query.push_back(QHelpSearchQuery(QHelpSearchQuery::FUZZY, QStringList(str)));
search->search(query);
#else
search->search(str);
#endif
}
void Help::indexingFinished()