aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/taskmodel.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-05-15 13:56:03 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-06-05 12:28:57 +0000
commite34b41934d68430c58107a700e3730595e88075d (patch)
tree1be42250bf0b9bde8ecc65986ca254d65fc10032 /src/plugins/projectexplorer/taskmodel.h
parent8e2e9662112cb09a7d6b3524c472d0978a4c4eb3 (diff)
Output panes: Respect filter options
The UI elements for case sensitivity and regexp behavior had not been doing anything until now. Change-Id: Ie210103984fda64d4249c56f9a5b21200132108f Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.h')
-rw-r--r--src/plugins/projectexplorer/taskmodel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.h b/src/plugins/projectexplorer/taskmodel.h
index f48e66d5d3..b1044a3234 100644
--- a/src/plugins/projectexplorer/taskmodel.h
+++ b/src/plugins/projectexplorer/taskmodel.h
@@ -28,6 +28,7 @@
#include <QSortFilterProxyModel>
#include <QIcon>
+#include <QRegularExpression>
#include "task.h"
@@ -143,6 +144,9 @@ public:
bool hasFile(const QModelIndex &index) const
{ return taskModel()->hasFile(mapToSource(index)); }
+ void updateFilterProperties(const QString &filterText, Qt::CaseSensitivity caseSensitivity,
+ bool isRegex);
+
private:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
bool filterAcceptsTask(const Task &task) const;
@@ -151,7 +155,11 @@ private:
bool m_includeUnknowns;
bool m_includeWarnings;
bool m_includeErrors;
+ bool m_filterStringIsRegexp = false;
+ Qt::CaseSensitivity m_filterCaseSensitivity = Qt::CaseInsensitive;
QList<Core::Id> m_categoryIds;
+ QString m_filterText;
+ QRegularExpression m_filterRegexp;
};
} // namespace Internal