aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/selectablefilesmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/selectablefilesmodel.h')
-rw-r--r--src/plugins/projectexplorer/selectablefilesmodel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/selectablefilesmodel.h b/src/plugins/projectexplorer/selectablefilesmodel.h
index 2d59e08da1..5669ec9202 100644
--- a/src/plugins/projectexplorer/selectablefilesmodel.h
+++ b/src/plugins/projectexplorer/selectablefilesmodel.h
@@ -34,6 +34,7 @@
#include <QFutureInterface>
#include <QFutureWatcher>
#include <QLabel>
+#include <QRegularExpression>
#include <QSet>
#include <QTreeView>
@@ -74,7 +75,7 @@ public:
enum Mode { EXACT, ENDSWITH, REGEXP };
Mode mode;
QString matchString;
- mutable QRegExp matchRegexp;
+ QRegularExpression matchRegexp;
bool isMatch(const QString &text) const
{
@@ -85,7 +86,7 @@ public:
if (text.endsWith(matchString))
return true;
} else if (mode == Glob::REGEXP) {
- if (matchRegexp.exactMatch(text))
+ if (matchRegexp.match(text).hasMatch())
return true;
}
return false;