Wireshark 4.7.0
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
 Creates and returns an editor widget for the cell at index.
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const
 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
parentOptional parent widget.

Member Function Documentation

◆ createEditor()

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

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

Parameters
parentParent widget for the created editor.
optionStyle options for the cell.
indexModel index of the cell being edited.
Returns
Pointer to the newly created editor widget.

◆ setEditorData()

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

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

Parameters
editorEditor widget previously returned by createEditor().
indexModel index of the cell being edited.

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