Fix build....

This commit is contained in:
Martin Rotter 2020-06-10 15:01:58 +02:00
parent 2d571cc5d0
commit c220a29b1a
2 changed files with 8 additions and 0 deletions

View File

@ -77,7 +77,11 @@ QModelIndexList FeedsProxyModel::match(const QModelIndex& start, int role, const
QString item_text = item_value.toString();
switch (match_type) {
#if QT_VERSION >= 0x050F00 // Qt >= 5.15.0
case Qt::MatchRegularExpression:
#else
case Qt::MatchRegExp:
#endif
if (QRegularExpression(entered_text,
QRegularExpression::PatternOption::CaseInsensitiveOption |
QRegularExpression::PatternOption::UseUnicodePropertiesOption).match(item_text).hasMatch()) {

View File

@ -113,7 +113,11 @@ QModelIndexList MessagesProxyModel::match(const QModelIndex& start, int role,
QString item_text = item_value.toString();
switch (match_type) {
#if QT_VERSION >= 0x050F00 // Qt >= 5.15.0
case Qt::MatchRegularExpression:
#else
case Qt::MatchRegExp:
#endif
if (QRegularExpression(entered_text,
QRegularExpression::PatternOption::CaseInsensitiveOption |
QRegularExpression::PatternOption::UseUnicodePropertiesOption).match(item_text).hasMatch()) {