Item delegate that provides inline editing for profile name cells in the profile tree view.
More...
#include <profile_tree_view.h>
|
| | 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.
|
| |
Item delegate that provides inline editing for profile name cells in the profile tree view.
◆ ProfileTreeEditDelegate()
| ProfileTreeEditDelegate::ProfileTreeEditDelegate |
( |
QWidget * |
parent = Q_NULLPTR | ) |
|
◆ 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
-
| 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 |
|
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