|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Sort/filter proxy that restricts a PluginIfTypeModel to a single item type. More...
#include <pluginifdemo_main.h>
Public Member Functions | |
| PluginIfTypeSortFilterProxyModel (QObject *parent=0) | |
| Constructs the proxy model with no active filter. | |
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
| Determines whether the given source row should be included in the filtered view. | |
| void | setFilterElement (ext_toolbar_item_t filterType) |
| Sets the item type to filter on; only rows matching this type will be shown. | |
Sort/filter proxy that restricts a PluginIfTypeModel to a single item type.
| PluginIfTypeSortFilterProxyModel::PluginIfTypeSortFilterProxyModel | ( | QObject * | parent = 0 | ) |
Constructs the proxy model with no active filter.
| parent | Optional parent QObject. |
| bool PluginIfTypeSortFilterProxyModel::filterAcceptsRow | ( | int | sourceRow, |
| const QModelIndex & | sourceParent | ||
| ) | const |
Determines whether the given source row should be included in the filtered view.
| sourceRow | Row index in the source model to evaluate. |
| sourceParent | Parent index in the source model (unused for list models). |
true if the row's item type matches the active filter; false otherwise. | void PluginIfTypeSortFilterProxyModel::setFilterElement | ( | ext_toolbar_item_t | filterType | ) |
Sets the item type to filter on; only rows matching this type will be shown.
| filterType | The ext_toolbar_item_t value to accept. |