YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::ModelQt2::ParameterEditDelegate Class Reference

Class to update data within the widget as well as the model. More...

List of all members.

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Creates a new editor element in the widget.
 ParameterEditDelegate (QObject *parent=0)
 Constructor.
void setEditorData (QWidget *editor, const QModelIndex &index) const
 Function to set data in the editor element under consideration.
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 Function to set the model data.
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Function to update the geometry of the editor element under consideration.
 ~ParameterEditDelegate ()
 Destructor.

Protected Attributes

QDoubleValidator * _validator
 Pointer to object which provides range checking of floating-point numbers.

Detailed Description

< ParameterEditDelegate


Constructor & Destructor Documentation

yane::ModelQt2::ParameterEditDelegate::ParameterEditDelegate ( QObject *  parent = 0)
Parameters:
parentParenting QObject

Member Function Documentation

QWidget * yane::ModelQt2::ParameterEditDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
Parameters:
parentParenting QWidget
optionOption which describe the parameters used to draw an item in a view widget
indexParameter used to locate data in a data model
Returns:
void yane::ModelQt2::ParameterEditDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
Parameters:
editorEditor element
indexParameter used to locate data in a data model
void yane::ModelQt2::ParameterEditDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
Parameters:
editorEditor element
modelParameter which provides the abstract interface for item model classes
indexParameter used to locate data in a data model
void yane::ModelQt2::ParameterEditDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
Parameters:
editorEditor element
optionOption which describe the parameters used to draw an item in a view widget
indexParameter used to locate data in a data model