#include <QVariantDelegate.h>
|
| QVariantDelegate (QObject *parent=0) |
|
virtual | ~QVariantDelegate () |
| Destructor.
|
|
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.
|
|
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
| QVariantDelegate (QObject *parent=0) |
|
virtual | ~QVariantDelegate () |
| Destructor.
|
|
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.
|
|
|
Property * | propertyFromModel (const QModelIndex &index) const |
|
|
void | parseEditorHints (QWidget *editor, const QString &editorHints) const |
|
void | parseEditorHints (QWidget *editor, const QString &editorHints) const |
|
|
QSignalMapper * | m_finishedMapper |
|
This class is used to create the editor widgets for datatypes encapsulated in QVariant variables
◆ QVariantDelegate() [1/2]
QVariantDelegate::QVariantDelegate |
( |
QObject * | parent = 0 | ) |
|
Constructor
- Parameters
-
parent | optional parent object |
◆ QVariantDelegate() [2/2]
QVariantDelegate::QVariantDelegate |
( |
QObject * | parent = 0 | ) |
|
Constructor
- Parameters
-
parent | optional parent object |
◆ createEditor() [1/2]
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
◆ createEditor() [2/2]
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
◆ setEditorData() [1/2]
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 |
◆ setEditorData() [2/2]
virtual 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 |
◆ setModelData() [1/2]
void QVariantDelegate::setModelData |
( |
QWidget * | editor, |
|
|
QAbstractItemModel * | model, |
|
|
const QModelIndex & | index ) const |
|
virtual |
Sets the data of a specific QModelIndex to the 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 |
◆ setModelData() [2/2]
virtual void QVariantDelegate::setModelData |
( |
QWidget * | editor, |
|
|
QAbstractItemModel * | model, |
|
|
const QModelIndex & | index ) const |
|
virtual |
Sets the data of a specific QModelIndex to the 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 |
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/QVariantDelegate.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/src/QPropertyEditor/QVariantDelegate.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/QVariantDelegate.cpp
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/QPropertyEditor/src/QPropertyEditor/QVariantDelegate.cpp