Output panes: Allow to invert the meaning of the filter field

That is, show only the non-matching lines.

Task-number: QTCREATORBUG-19596
Change-Id: Iac06a7c4531688dbf97c7d5c4d0cdb80979b5f95
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2019-11-18 13:56:59 +01:00
parent 9298bf8ff8
commit aacfd340ca
10 changed files with 61 additions and 21 deletions

View File

@@ -145,8 +145,11 @@ public:
bool hasFile(const QModelIndex &index) const
{ return taskModel()->hasFile(mapToSource(index)); }
void updateFilterProperties(const QString &filterText, Qt::CaseSensitivity caseSensitivity,
bool isRegex);
void updateFilterProperties(
const QString &filterText,
Qt::CaseSensitivity caseSensitivity,
bool isRegex,
bool isInverted);
private:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
@@ -157,6 +160,7 @@ private:
bool m_includeWarnings;
bool m_includeErrors;
bool m_filterStringIsRegexp = false;
bool m_filterIsInverted = false;
Qt::CaseSensitivity m_filterCaseSensitivity = Qt::CaseInsensitive;
QList<Core::Id> m_categoryIds;
QString m_filterText;