Handles display of model data for VariableAdjustWidget.
More...
Handles display of model data for VariableAdjustWidget.
This class is heavily based on the example SpinBoxDelegate provided by the Qt framework.
Creates the editor based on index.
- Parameters
-
parent | The parent widget. |
index | The index of the current element. |
option | Editor option (unused). |
- Returns
- the apropriate editor.
Reimplemented from QStyledItemDelegate.
void VariableEditDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Sets editor data from model. Triggered when the model is changed.
- Parameters
-
editor | The editor to provide with data. |
index | The index of the data. |
Reimplemented from QStyledItemDelegate.
Sets model data from editor. Triggered when an editor is changed.
- Parameters
-
editor | The editor source. |
model | The model to edit. |
index | The index to edit. |
Reimplemented from QStyledItemDelegate.
Handles editor styling.
- Parameters
-
editor | The editor to style. |
option | Styling option. |
index | The data index (unused). |
Reimplemented from QStyledItemDelegate.
The documentation for this class was generated from the following files:
- /home/sigrid/Code/delegate.h
- /home/sigrid/Code/delegate.cpp