diff --git a/src/libs/vmisc/vtablesearch.cpp b/src/libs/vmisc/vtablesearch.cpp index e10c9290a..767506638 100644 --- a/src/libs/vmisc/vtablesearch.cpp +++ b/src/libs/vmisc/vtablesearch.cpp @@ -115,7 +115,11 @@ QList VTableSearch::FindTableItems(const QString& term) if (searchType == QChar('r')) { QString reSearchString = ".*" % searchString % ".*"; +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) return table->findItems(reSearchString, Qt::MatchRegExp); +#else + return table->findItems(reSearchString, Qt::MatchRegularExpression); +#endif } return QList();