A proxy model used for sorting and filtering expert information data.
More...
#include <expert_info_proxy_model.h>
|
| | ExpertInfoProxyModel (QObject *parent=0) |
| | Constructs a new ExpertInfoProxyModel.
|
| QVariant | data (const QModelIndex &index, int role) const override |
| | Retrieves data from the proxy model for a given index and role.
|
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| | Retrieves the header data for a specific section and role.
|
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| | Returns the number of columns under a given parent.
|
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
| | Checks if a given parent index has any child elements.
|
| virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
| | Determines whether a row from the source model should be displayed.
|
| void | setSeverityMode (enum SeverityMode mode) |
| | Sets the severity mode for the proxy model.
|
| void | setSeverityFilter (int severity, bool hide) |
| | Sets whether a specific severity level should be hidden or shown.
|
| void | setSummaryFilter (const QString &filter) |
| | Sets the text filter used to filter items by their summary.
|
|
| bool | lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override |
| | Compares two source indices to determine their sort order.
|
| bool | filterAcceptItem (ExpertPacketItem &item) const |
| | Checks if an individual expert packet item matches the current filter criteria.
|
A proxy model used for sorting and filtering expert information data.
◆ ExpertProxyColumn
Enumerates the columns exposed by the proxy model.
| Enumerator |
|---|
| colProxySeverity | Severity column.
|
| colProxySummary | Summary text column.
|
| colProxyGroup | Group ID column.
|
| colProxyProtocol | Protocol string column.
|
| colProxyCount | Event count column.
|
| colProxyLast | End of proxy columns marker.
|
◆ SeverityMode
Defines the mode for displaying and evaluating severities.
| Enumerator |
|---|
| Group | Mode for evaluating severity at the group level.
|
| Packet | Mode for evaluating severity at the individual packet level.
|
◆ ExpertInfoProxyModel()
| ExpertInfoProxyModel::ExpertInfoProxyModel |
( |
QObject * | parent = 0 | ) |
|
◆ columnCount()
| int ExpertInfoProxyModel::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
Returns the number of columns under a given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of columns.
◆ data()
| QVariant ExpertInfoProxyModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
Retrieves data from the proxy model for a given index and role.
- Parameters
-
| index | The proxy model index. |
| role | The data role requested. |
- Returns
- The data associated with the index and role.
◆ filterAcceptItem()
Checks if an individual expert packet item matches the current filter criteria.
- Parameters
-
| item | The expert packet item to check. |
- Returns
- True if the item is accepted, false otherwise.
◆ filterAcceptsRow()
| bool ExpertInfoProxyModel::filterAcceptsRow |
( |
int | sourceRow, |
|
|
const QModelIndex & | sourceParent ) const |
|
overridevirtual |
Determines whether a row from the source model should be displayed.
- Parameters
-
| sourceRow | The row in the source model. |
| sourceParent | The parent index in the source model. |
- Returns
- True if the row is accepted, false otherwise.
◆ hasChildren()
| bool ExpertInfoProxyModel::hasChildren |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
Checks if a given parent index has any child elements.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- True if the parent has children, false otherwise.
◆ headerData()
| QVariant ExpertInfoProxyModel::headerData |
( |
int | section, |
|
|
Qt::Orientation | orientation, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
Retrieves the header data for a specific section and role.
- Parameters
-
| section | The column or row section. |
| orientation | The orientation of the header. |
| role | The data role requested (defaults to Qt::DisplayRole). |
- Returns
- The header data.
◆ lessThan()
| bool ExpertInfoProxyModel::lessThan |
( |
const QModelIndex & | source_left, |
|
|
const QModelIndex & | source_right ) const |
|
overrideprotected |
Compares two source indices to determine their sort order.
- Parameters
-
| source_left | The first source index. |
| source_right | The second source index. |
- Returns
- True if the left item should appear before the right item.
◆ setSeverityFilter()
| void ExpertInfoProxyModel::setSeverityFilter |
( |
int | severity, |
|
|
bool | hide ) |
Sets whether a specific severity level should be hidden or shown.
- Parameters
-
| severity | The severity level identifier. |
| hide | True to hide the severity, false to show it. |
◆ setSeverityMode()
| void ExpertInfoProxyModel::setSeverityMode |
( |
enum SeverityMode | mode | ) |
|
Sets the severity mode for the proxy model.
- Parameters
-
| mode | The severity mode to apply. |
◆ setSummaryFilter()
| void ExpertInfoProxyModel::setSummaryFilter |
( |
const QString & | filter | ) |
|
Sets the text filter used to filter items by their summary.
- Parameters
-
| filter | The filter text or regular expression. |
◆ hidden_severities_
| QList<int> ExpertInfoProxyModel::hidden_severities_ |
|
protected |
A list of severity levels that are currently hidden.
◆ severityMode_
The current severity evaluation mode.
◆ textFilter_
| QString ExpertInfoProxyModel::textFilter_ |
|
protected |
The current text filter applied to summaries.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/expert_info_proxy_model.h
- /builds/wireshark/wireshark/ui/qt/models/expert_info_proxy_model.cpp