A proxy model for filtering log entries based on various criteria.
More...
#include <log_filter_model.h>
|
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
| | Determines whether a row should be accepted based on the current filters.
|
|
|
QSet< QString > | mSourcesLevels |
| | The currently enabled log levels.
|
|
QString | mFileFilter |
| | The currently enabled sources.
|
|
QString | mTextFilter |
| | The current file name filter.
|
A proxy model for filtering log entries based on various criteria.
◆ LogFilterProxyModel()
| LogFilterProxyModel::LogFilterProxyModel |
( |
QObject * | parent = nullptr | ) |
|
◆ filterAcceptsRow()
| bool LogFilterProxyModel::filterAcceptsRow |
( |
int | sourceRow, |
|
|
const QModelIndex & | sourceParent ) const |
|
overrideprotected |
Determines whether a row should be accepted based on the current filters.
- Parameters
-
| sourceRow | The index of the row in the source model. |
| sourceParent | The parent index of the row in the source model. |
- Returns
- true if the row should be accepted, false otherwise.
◆ setFileFilter()
| void LogFilterProxyModel::setFileFilter |
( |
const QString & | source | ) |
|
Sets the filter for file names.
- Parameters
-
| source | The file name to filter by. |
◆ setLevelEnabled()
| void LogFilterProxyModel::setLevelEnabled |
( |
logging::LogLevel | level, |
|
|
bool | enabled ) |
Sets the filter for log levels.
- Parameters
-
| level | The log level to filter by. Default is "All". |
◆ setSourceFilter()
| void LogFilterProxyModel::setSourceFilter |
( |
const QString & | source | ) |
|
Sets the filter for source names.
- Parameters
-
| source | The source name to filter by. |
◆ setTextFilter()
| void LogFilterProxyModel::setTextFilter |
( |
const QString & | text | ) |
|
Sets the text filter for log entries.
- Parameters
-
| text | The text to filter by. |
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/widgets/log_filter_model.h
- /__w/maki/maki/app/widgets/log_filter_model.cpp