Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FilterTreeDelegate Class Reference

Delegate for editing capture and display filters. More...

#include <filter_dialog.h>

Inheritance diagram for FilterTreeDelegate:

Public Member Functions

 FilterTreeDelegate (QObject *parent, FilterDialog::FilterType filter_type)
 Constructs a new FilterTreeDelegate.
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Creates the editor widget for a specific item.
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const override
 Sets the data in the editor from the model.
 

Detailed Description

Delegate for editing capture and display filters.

Constructor & Destructor Documentation

◆ FilterTreeDelegate()

FilterTreeDelegate::FilterTreeDelegate ( QObject *  parent,
FilterDialog::FilterType  filter_type 
)

Constructs a new FilterTreeDelegate.

Parameters
parentThe parent QObject.
filter_typeThe type of filter being edited.

Member Function Documentation

◆ createEditor()

QWidget * FilterTreeDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual

Creates the editor widget for a specific item.

Parameters
parentThe parent widget for the editor.
optionThe style options for the item.
indexThe model index of the item being edited.
Returns
A pointer to the created editor widget.

◆ setEditorData()

void FilterTreeDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
overridevirtual

Sets the data in the editor from the model.

Parameters
editorThe editor widget.
indexThe model index containing the data.

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