| Wireshark 4.7.3 The Wireshark network protocol analyzer

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

Item delegate that provides inline editing for profile name cells in the profile tree view. More...

`#include <profile_tree_view.h>`

Inheritance diagram for ProfileTreeEditDelegate:

## Public Member Functions
| ProfileTreeEditDelegate (QWidget *parent=Q_NULLPTR)
| Constructs a ProfileTreeEditDelegate.
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
| Creates and returns an editor widget for the cell at `index`.
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const override
| Populates the editor widget with the current value from the model.

## Detailed Description

Item delegate that provides inline editing for profile name cells in the profile tree view.

## Constructor & Destructor Documentation

## ◆ ProfileTreeEditDelegate()

ProfileTreeEditDelegate::ProfileTreeEditDelegate | ( | QWidget * | parent = Q_NULLPTR | ) |

Constructs a ProfileTreeEditDelegate.

Parameters

  parent | Optional parent widget.

## Member Function Documentation

## ◆ createEditor()

QWidget * ProfileTreeEditDelegate::createEditor | ( | QWidget * | parent,
|  | const QStyleOptionViewItem & | option,
|  | const QModelIndex & | index ) const
| override

Creates and returns an editor widget for the cell at `index`.

Parameters

  parent | Parent widget for the created editor.
  option | Style options for the cell.
  index | Model index of the cell being edited.

Returns
  Pointer to the newly created editor widget.

## ◆ setEditorData()

void ProfileTreeEditDelegate::setEditorData | ( | QWidget * | editor,
|  | const QModelIndex & | index ) const
| override virtual

Populates the editor widget with the current value from the model.

Parameters

  editor | Editor widget previously returned by createEditor().
  index | Model index of the cell being edited.

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

- /builds/wireshark/wireshark/ui/qt/widgets/profile_tree_view.h
- /builds/wireshark/wireshark/ui/qt/widgets/profile_tree_view.cpp