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

A delegate for rendering and editing fields in User Accessible Tables (UAT). More...

#include <uat_delegate.h>

Inheritance diagram for UatDelegate:

Public Member Functions

 UatDelegate (QObject *parent=0)
 Constructs a new UatDelegate object.
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Creates the editor widget for the specified item.
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 Sets the data to be displayed in the editor widget.
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 Saves the data from the editor widget back into the model.
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Updates the geometry of the editor widget based on the style option.
 

Protected Slots

void pathHasChanged (QString newPath)
 Handles the event when a file or directory path has changed.
 

Detailed Description

A delegate for rendering and editing fields in User Accessible Tables (UAT).

Constructor & Destructor Documentation

◆ UatDelegate()

UatDelegate::UatDelegate ( QObject *  parent = 0)

Constructs a new UatDelegate object.

Parameters
parentThe parent object.

Member Function Documentation

◆ createEditor()

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

Creates the editor widget for the specified item.

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

◆ pathHasChanged

void UatDelegate::pathHasChanged ( QString  newPath)
protectedslot

Handles the event when a file or directory path has changed.

Parameters
newPathThe newly selected path string.

◆ setEditorData()

void UatDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Sets the data to be displayed in the editor widget.

Parameters
editorThe editor widget.
indexThe model index of the item being edited.

◆ setModelData()

void UatDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

Saves the data from the editor widget back into the model.

Parameters
editorThe editor widget.
modelThe data model.
indexThe model index of the item being edited.

◆ updateEditorGeometry()

void UatDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Updates the geometry of the editor widget based on the style option.

Parameters
editorThe editor widget.
optionThe style option for the item.
indexThe model index of the item being edited.

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