mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Add old QHelpSearchEngine search function for Qt<5.9 builds
This commit is contained in:
parent
28d6827664
commit
8f5fdbc90d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user