List model that exposes a collection of PluginIfType entries to Qt views.
More...
#include <pluginifdemo_main.h>
List model that exposes a collection of PluginIfType entries to Qt views.
◆ PluginIfTypeModel()
| PluginIfTypeModel::PluginIfTypeModel |
( |
QObject * |
parent = 0 | ) |
|
◆ addPluginIfType()
| void PluginIfTypeModel::addPluginIfType |
( |
const PluginIfType & |
pluginIfType | ) |
|
Appends a PluginIfType entry to the model.
- Parameters
-
| pluginIfType | The entry to append. |
◆ data()
| QVariant PluginIfTypeModel::data |
( |
const QModelIndex & |
idx, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
Returns data for the given index and role.
- Parameters
-
| idx | Model index of the requested item. |
| role | Qt item data role (e.g. Qt::DisplayRole). |
- Returns
- QVariant containing the requested data, or an invalid QVariant if unavailable.
◆ rowCount()
| int PluginIfTypeModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
Returns the number of rows (entries) in the model.
- Parameters
-
| parent | Unused; pass a default QModelIndex for list models. |
- Returns
- Number of PluginIfType entries currently held.
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