forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user