|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
A table model for managing the list of packet list columns. More...
#include <column_list_model.h>
Public Types | |
| enum | { COL_DISPLAYED , COL_TITLE , COL_TYPE , COL_FIELDS , COL_OCCURRENCE , COL_DISPLAY , COL_WIDTH , COL_XALIGN } |
| Enumeration of column identifiers in the column list model. More... | |
| enum | { OriginalType = Qt::UserRole , DisplayedState } |
| Enumeration of custom roles used in the column list model. More... | |
Public Member Functions | |
| ColumnListModel (QObject *parent=Q_NULLPTR) | |
| Constructs a new ColumnListModel. | |
| void | saveColumns () |
| Saves the current column list to the global configuration. | |
| void | addEntry () |
| Adds a new default entry to the end of the column list. | |
| void | deleteEntry (int row) |
| Deletes a specific entry from the column list. | |
| void | reset () |
| Resets the column list to the default configuration. | |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Retrieves header data for the table model. | |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Retrieves data from the model. | |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Retrieves the number of rows in the model. | |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Retrieves the number of columns in the model. | |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| Retrieves the item flags for a given index. | |
| virtual QStringList | mimeTypes () const |
| Retrieves the supported MIME types for drag and drop operations. | |
| virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
| Generates MIME data for the specified list of indexes. | |
| virtual Qt::DropActions | supportedDropActions () const |
| Specifies the supported drag and drop actions. | |
| virtual bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const |
| Checks if MIME data can be dropped at a specific location. | |
| virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| Handles dropped MIME data to rearrange rows. | |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| Sets data in the model for the given index and role. | |
Static Public Member Functions | |
| static bool | displayEnabled (const QModelIndex &index, bool &displayStrings, bool &displayDetails) |
| Checks whether the display options are enabled for the given index. | |
A table model for managing the list of packet list columns.
| anonymous enum |
Enumeration of column identifiers in the column list model.
| anonymous enum |
| ColumnListModel::ColumnListModel | ( | QObject * | parent = Q_NULLPTR | ) |
Constructs a new ColumnListModel.
| parent | The parent QObject, defaults to Q_NULLPTR. |
|
virtual |
Checks if MIME data can be dropped at a specific location.
| data | The MIME data being dropped. |
| action | The drop action. |
| row | The target row for the drop. |
| column | The target column for the drop. |
| parent | The target parent model index. |
|
virtual |
Retrieves the number of columns in the model.
| parent | The parent model index. |
|
virtual |
Retrieves data from the model.
| index | The model index. |
| role | The requested data role. |
| void ColumnListModel::deleteEntry | ( | int | row | ) |
Deletes a specific entry from the column list.
| row | The row index to delete. |
|
static |
Checks whether the display options are enabled for the given index.
| index | The model index. |
| displayStrings | Output boolean indicating if display strings are supported. |
| displayDetails | Output boolean indicating if display details are supported. |
|
virtual |
Handles dropped MIME data to rearrange rows.
| data | The MIME data dropped. |
| action | The drop action. |
| row | The target row. |
| column | The target column. |
| parent | The target parent index. |
|
virtual |
Retrieves the item flags for a given index.
| index | The model index. |
|
virtual |
Retrieves header data for the table model.
| section | The column or row section. |
| orientation | The orientation of the header. |
| role | The requested data role. |
|
virtual |
Generates MIME data for the specified list of indexes.
| indexes | The list of indexes to generate data for. |
|
virtual |
Retrieves the supported MIME types for drag and drop operations.
|
virtual |
Retrieves the number of rows in the model.
| parent | The parent model index. |
|
virtual |
Sets data in the model for the given index and role.
| index | The model index to update. |
| value | The value to set. |
| role | The data role being set. |
|
virtual |
Specifies the supported drag and drop actions.