Use of Qt::MatchRegExp deprecated since Qt 5.15. Use Qt::MatchRegularExpression instead.

This commit is contained in:
Roman Telezhynskyi 2020-07-08 10:31:53 +03:00
parent dd9cfb39f5
commit e31a22654e

View File

@ -115,7 +115,11 @@ QList<QTableWidgetItem *> 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<QTableWidgetItem *>();