Item delegate providing in-place editors for the Advanced Preferences table.
More...
#include <pref_delegate.h>
|
| | AdvancedPrefDelegate (QObject *parent=0) |
| | Construct an AdvancedPrefDelegate.
|
| |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Create an editor widget appropriate for the preference at index.
|
| |
| void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| | Populate the editor with the current preference value.
|
| |
| void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| | Write the editor's current value back to the model.
|
| |
Item delegate providing in-place editors for the Advanced Preferences table.
◆ AdvancedPrefDelegate()
| AdvancedPrefDelegate::AdvancedPrefDelegate |
( |
QObject * |
parent = 0 | ) |
|
◆ createEditor()
| QWidget * AdvancedPrefDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Create an editor widget appropriate for the preference at index.
- Parameters
-
| parent | The parent widget for the editor. |
| option | Style options for the editor's geometry. |
| index | The model index of the cell being edited. |
- Returns
- The editor widget; ownership is transferred to the view.
◆ setEditorData()
| void AdvancedPrefDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Populate the editor with the current preference value.
- Parameters
-
| editor | The editor widget returned by createEditor(). |
| index | The model index whose data should be loaded into the editor. |
◆ setModelData()
| void AdvancedPrefDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Write the editor's current value back to the model.
- Parameters
-
| editor | The editor widget whose value should be committed. |
| model | The model to update. |
| index | The model index to write to. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/pref_delegate.h
- /builds/wireshark/wireshark/ui/qt/models/pref_delegate.cpp