Use of Qt::MatchRegExp deprecated since Qt 5.15. Use Qt::MatchRegularExpression instead.
This commit is contained in:
parent
dd9cfb39f5
commit
e31a22654e
|
@ -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 *>();
|
||||
|
|
Loading…
Reference in New Issue
Block a user