aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@idiap.ch>2018-12-15 14:19:11 +0100
committerSamuel Gaist <samuel.gaist@idiap.ch>2018-12-17 22:13:16 +0000
commit69f02184a9a71f3a5e2dd1ada12367ddccd29787 (patch)
tree0a879c1b9754a22fb78255ccdc3ab7b82bb1dba4
parentb943bbf91162ba8aad4a6c3b0c7ca2e944a26105 (diff)
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>
-rw-r--r--src/quicktemplates2/qquickcombobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp
index 1b6161c0..ffdb7cc2 100644
--- a/src/quicktemplates2/qquickcombobox.cpp
+++ b/src/quicktemplates2/qquickcombobox.cpp
@@ -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;