From e31a22654ed450e329489e7e8629a7f188e2a61b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 8 Jul 2020 10:31:53 +0300 Subject: [PATCH] Use of Qt::MatchRegExp deprecated since Qt 5.15. Use Qt::MatchRegularExpression instead. --- src/libs/vmisc/vtablesearch.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();