This class allows us to override the default editors for setting items.
More...
#include <settingsdelegate.h>
List of all members.
Public Member Functions |
| SettingsDelegate (QObject *parent=0) |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Created an editor for the setting at the given model index.
|
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| Trensfers the data from the item editor to the data model.
|
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| Transfers the data from the model to the editor.
|
Detailed Description
This class allows us to override the default editors for setting items.
Constructor & Destructor Documentation
Member Function Documentation
Created an editor for the setting at the given model index.
- Parameters:
-
parent | The parent that should be set in the editor. |
option | Style option for the item at the given index. |
index | The model index of the setting for which the editor should be created. |
Transfers the data from the model to the editor.
- Parameters:
-
editor | The editor for this item that was previously created with the createEditor() method. |
index | The model index of the settings item whose data should be transfered. |
Trensfers the data from the item editor to the data model.
- Parameters:
-
editor | Pointer to the editor widget for this setting's item. |
model | Pointer to the model containing the setting. |
index | Index at which the setting resides in the model. |
The documentation for this class was generated from the following files: