Sort/filter proxy that restricts a PluginIfTypeModel to a single item type.
More...
#include <pluginifdemo_main.h>
Sort/filter proxy that restricts a PluginIfTypeModel to a single item type.
◆ PluginIfTypeSortFilterProxyModel()
| PluginIfTypeSortFilterProxyModel::PluginIfTypeSortFilterProxyModel |
( |
QObject * | parent = 0 | ) |
|
Constructs the proxy model with no active filter.
- Parameters
-
| parent | Optional parent QObject. |
◆ filterAcceptsRow()
| bool PluginIfTypeSortFilterProxyModel::filterAcceptsRow |
( |
int | sourceRow, |
|
|
const QModelIndex & | sourceParent ) const |
|
override |
Determines whether the given source row should be included in the filtered view.
- Parameters
-
| sourceRow | Row index in the source model to evaluate. |
| sourceParent | Parent index in the source model (unused for list models). |
- Returns
true if the row's item type matches the active filter; false otherwise.
◆ setFilterElement()
Sets the item type to filter on; only rows matching this type will be shown.
- Parameters
-
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/plugins/ui/pluginifdemo/ui/pluginifdemo_main.h
- /builds/wireshark/wireshark/plugins/ui/pluginifdemo/ui/pluginifdemo_main.cpp