mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +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();
|
QHelpSearchEngine * search = helpEngine->searchEngine();
|
||||||
|
|
||||||
QString str=ui->searchBar->text();
|
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);
|
search->search(str);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Help::indexingFinished()
|
void Help::indexingFinished()
|
||||||
|
Loading…
Reference in New Issue
Block a user