A tree model providing data for the registered dissector tables.
More...
#include <dissector_tables_model.h>
|
| | DissectorTablesModel (QObject *parent=Q_NULLPTR) |
| | Constructs a new DissectorTablesModel.
|
| |
|
virtual | ~DissectorTablesModel () |
| | Destroys the DissectorTablesModel.
|
| |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| | Generates an index for the specified row and column.
|
| |
| QModelIndex | parent (const QModelIndex &index) const |
| | Retrieves the parent index for the given index.
|
| |
| QVariant | data (const QModelIndex &index, int role) const |
| | Retrieves data from the model for a given index and role.
|
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of rows under the given parent.
|
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of columns under the given parent.
|
| |
|
void | populate () |
| | Populates the model with the currently registered dissector tables.
|
| |
A tree model providing data for the registered dissector tables.
◆ DissectorTablesColumn
Enumeration of the columns available in the model.
| Enumerator |
|---|
| colTableName | Column for the table name.
|
| colDissectorDescription | Column for the dissector description.
|
| colLast | Maximum column index marker.
|
◆ DissectorTablesModel()
| DissectorTablesModel::DissectorTablesModel |
( |
QObject * |
parent = Q_NULLPTR | ) |
|
|
explicit |
◆ columnCount()
| int DissectorTablesModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
Returns the number of columns under the given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of columns.
◆ data()
| QVariant DissectorTablesModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Retrieves data from the model for a given index and role.
- Parameters
-
| index | The model index. |
| role | The requested data role. |
- Returns
- The data associated with the index and role.
◆ index()
| QModelIndex DissectorTablesModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
Generates an index for the specified row and column.
- Parameters
-
| row | The row number. |
| column | The column number. |
| parent | The parent index (defaults to an invalid QModelIndex). |
- Returns
- The generated model index.
◆ parent()
| QModelIndex DissectorTablesModel::parent |
( |
const QModelIndex & |
index | ) |
const |
Retrieves the parent index for the given index.
- Parameters
-
| index | The child model index. |
- Returns
- The parent model index.
◆ rowCount()
| int DissectorTablesModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
Returns the number of rows under the given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of rows.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/dissector_tables_model.h
- /builds/wireshark/wireshark/ui/qt/models/dissector_tables_model.cpp