aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/todo/todoitemsprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/todo/todoitemsprovider.cpp')
-rw-r--r--src/plugins/todo/todoitemsprovider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/todo/todoitemsprovider.cpp b/src/plugins/todo/todoitemsprovider.cpp
index de83d31d4e..c76dd6b53f 100644
--- a/src/plugins/todo/todoitemsprovider.cpp
+++ b/src/plugins/todo/todoitemsprovider.cpp
@@ -41,7 +41,7 @@
#include <utils/algorithm.h>
-#include <QRegExp>
+#include <QRegularExpression>
#include <QTimer>
using namespace ProjectExplorer;
@@ -131,8 +131,8 @@ void TodoItemsProvider::setItemsListWithinStartupProject()
if (filePaths.contains(filePath)) {
bool skip = false;
for (const QVariant &pattern : settings[Constants::EXCLUDES_LIST_KEY].toList()) {
- QRegExp re(pattern.toString());
- if (re.indexIn(filePath.toString()) != -1) {
+ QRegularExpression re(pattern.toString());
+ if (filePath.toString().indexOf(re) != -1) {
skip = true;
break;
}