|
|
| StringPreference (QObject *parent=Q_NULLPTR) |
| |
| virtual QWidget * | editor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) |
| | Creates and returns an editor widget for the preference at index.
|
| |
| virtual void | setData (QWidget *editor, const QModelIndex &index) |
| | Populates the editor widget with the current preference value from the model at index.
|
| |
| virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) |
| | Writes the editor's current value back to the model.
|
| |
| Q_INVOKABLE | WiresharkPreference (QObject *parent=Q_NULLPTR) |
| | Constructs a WiresharkPreference with no associated PrefsItem.
|
| |
| void | setPrefsItem (PrefsItem *item) |
| | Associates a PrefsItem with this preference editor.
|
| |
◆ editor()
| virtual QWidget * StringPreference::editor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
inlinevirtual |
Creates and returns an editor widget for the preference at index.
- Parameters
-
| parent | Parent widget for the created editor. |
| option | Style options for the cell being edited. |
| index | Model index of the preference cell. |
- Returns
- Pointer to the newly created editor widget, or
nullptr if no inline editor is provided by this preference type.
Reimplemented from WiresharkPreference.
Reimplemented in PasswordPreference.
◆ setData()
| virtual void StringPreference::setData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
inlinevirtual |
Populates the editor widget with the current preference value from the model at index.
- Parameters
-
| editor | The editor widget previously returned by editor(). |
| index | Model index of the preference being edited. |
Reimplemented from WiresharkPreference.
◆ setModelData()
| virtual void StringPreference::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
inlinevirtual |
Writes the editor's current value back to the model.
- Parameters
-
| editor | The editor widget containing the new value. |
| model | The model to update. |
| index | Model index of the preference cell to update. |
Reimplemented from WiresharkPreference.
The documentation for this class was generated from the following file:
- /builds/wireshark/wireshark/ui/qt/manager/wireshark_preference.cpp