#include <qvariantdelegate.h>
|
| QVariantDelegate (QObject *parent=0) |
|
virtual | ~QVariantDelegate () |
| Destructor. More...
|
|
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
|
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
|
virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| QItemDelegate implementation. More...
|
|
This class is used to create the editor widgets for datatypes encapsulated in QVariant variables
Definition at line 33 of file qvariantdelegate.h.
QVariantDelegate::QVariantDelegate |
( |
QObject * |
parent = 0 | ) |
|
QVariantDelegate::~QVariantDelegate |
( |
| ) |
|
|
virtual |
void QVariantDelegate::beginPropertyEdit |
( |
| ) |
const |
|
signal |
QWidget * QVariantDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Creates an editor widget as child of a given widget for a specific QModelIndex
- Parameters
-
parent | the parent widget for the editor |
option | some style options that the editor should use |
index | the index of the item the editor will be created for |
- Returns
- QWidget the editor widget
Definition at line 50 of file qvariantdelegate.cpp.
void QVariantDelegate::finishPropertyEdit |
( |
| ) |
const |
|
signal |
void QVariantDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Tries to set the editor data based on the value stored at a specific QModelIndex
- Parameters
-
editor | the editor widget |
index | the model index of the value that should be used in the editor |
Definition at line 88 of file qvariantdelegate.cpp.
void QVariantDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Sets the data of a specific QModelIndex to tha value of the editor widget
- Parameters
-
editor | the editor widget that contains the new value |
model | the model that contains the index |
index | the index within the model whose data value should be set to the data value of the editor |
Definition at line 109 of file qvariantdelegate.cpp.
void QVariantDelegate::updateEditorGeometry |
( |
QWidget * |
editor, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
The documentation for this class was generated from the following files: