Wireshark 4.7.0
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
parentThe parent QObject, defaults to Q_NULLPTR.

Member Function Documentation

◆ filterAcceptsRow()

bool ColumnProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotectedvirtual

Determines whether a specific row is accepted by the filter.

Parameters
source_rowThe row index in the source model.
source_parentThe 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
setTrue to show only displayed columns, false otherwise.

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