Fixed source wildcard search for older QT version.

This commit is contained in:
Ernie Pasveer
2022-10-10 17:08:46 -05:00
parent d2a05f653b
commit 0555713688
2 changed files with 2 additions and 26 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void SeerLibraryBrowserWidget::handleSearchLineEdit (const QString& text) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
matches = libraryTreeWidget->findItems(text, Qt::MatchRegularExpression | Qt::MatchRecursive, 0);
#else
matches = libraryTreeWidget->findItems(text, Qt::MatchRegExp | Qt::MatchRecursive, 0);
matches = libraryTreeWidget->findItems(text, Qt::MatchWildcard | Qt::MatchRecursive, 0);
#endif
QList<QTreeWidgetItem*>::const_iterator it = matches.begin();