| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
ColumnProxyModel Class Reference

Proxy model for filtering and sorting the packet list column models. More...

`#include <column_list_model.h>`

Inheritance diagram for ColumnProxyModel:

## Public Member Functions
| ColumnProxyModel (QObject *parent=Q_NULLPTR)
| Constructs a new ColumnProxyModel.
void | setShowDisplayedOnly (bool set)
| Sets whether to show only the displayed columns.

## Protected Member Functions
virtual bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
| Determines whether a specific row is accepted by the filter.

## Detailed Description

Proxy model for filtering and sorting the packet list column models.

## Constructor & Destructor Documentation

## ◆ ColumnProxyModel()

ColumnProxyModel::ColumnProxyModel | ( | QObject * | parent = Q_NULLPTR | ) |

Constructs a new ColumnProxyModel.

Parameters

  parent | The parent QObject, defaults to Q_NULLPTR.

## Member Function Documentation

## ◆ filterAcceptsRow()

bool ColumnProxyModel::filterAcceptsRow | ( | int | source_row,
|  | const QModelIndex & | source_parent ) const
| override protected virtual

Determines whether a specific row is accepted by the filter.

Parameters

  source_row | The row index in the source model.
  source_parent | The parent model index in the source model.

Returns
  True if the row is accepted, false otherwise.

## ◆ setShowDisplayedOnly()

void ColumnProxyModel::setShowDisplayedOnly | ( | bool | set | ) |

Sets whether to show only the displayed columns.

Parameters

  set | True to show only displayed columns, false otherwise.

The documentation for this class was generated from the following files:

- /builds/wireshark/wireshark/ui/qt/models/column_list_model.h
- /builds/wireshark/wireshark/ui/qt/models/column_list_model.cpp