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:
parent
b943bbf911
commit
69f02184a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue