|
| InterfaceTreeModel (QObject *parent) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
|
void | updateStatistic (unsigned int row) |
|
QString | interfaceError () |
|
QItemSelection | selectedDevices () |
|
bool | updateSelectedDevices (QItemSelection sourceSelection) |
|
QVariant | getColumnContent (int idx, int col, int role=Qt::DisplayRole) |
|
|
static const QString | DefaultNumericValue = QObject::tr("default") |
|
◆ InterfaceTreeModel()
InterfaceTreeModel::InterfaceTreeModel |
( |
QObject * |
parent | ) |
|
This is the data model for interface trees. It implies, that the index within global_capture_opts.all_ifaces is identical to the row. This is always the case, even when interfaces are hidden by the proxy model. But for this to work, every access to the index from within the view, has to be filtered through the proxy model.
◆ interfaceListChanged
void InterfaceTreeModel::interfaceListChanged |
( |
| ) |
|
|
slot |
The interface list has changed. global_capture_opts.all_ifaces may have been reloaded or changed with current data. beginResetModel() and endResetModel() will signalize the proxy model and the view, that the data has changed and the view has to reload
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/interface_tree_model.h
- /builds/wireshark/wireshark/ui/qt/models/interface_tree_model.cpp