QQuickComboBox: update QRegularExpression wildcard code

Following the update of qtbase because of QTBUG-72539, the code using
wildcardToRegularExpression must be updated as anchoredPattern is not
needed anymore.

Task-number: QTBUG-72539
Change-Id: I51c895560866079c9cc27fa076e29fa4546ecf8f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
Samuel Gaist 2018-12-15 14:19:11 +01:00
parent b943bbf911
commit 69f02184a9
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ int QQuickComboBoxPrivate::match(int start, const QString &text, Qt::MatchFlags
break;
}
case Qt::MatchWildcard: {
QRegularExpression rx(QRegularExpression::anchoredPattern(QRegularExpression::wildcardToRegularExpression(text)),
QRegularExpression rx(QRegularExpression::wildcardToRegularExpression(text),
options);
if (rx.match(t).hasMatch())
return idx;