FactDev  0.1
Gui::Widgets::Delegates::DoubleSpinBoxDelegate Class Reference

The DoubleSpinBoxDelegate class. More...

#include <doublespinboxdelegate.h>

Inheritance diagram for Gui::Widgets::Delegates::DoubleSpinBoxDelegate:

Public Member Functions

 DoubleSpinBoxDelegate (QObject *parent=0)
 DoubleSpinBoxDelegate::DoubleSpinBoxDelegate. More...
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 DoubleSpinBoxDelegate::createEditor Return a ComboBox specified by index item defined by the parent widget and style option which are used to control how the editor widgets appears. More...
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 DoubleSpinBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index More...
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 DoubleSpinBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index More...
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 DoubleSpinBoxDelegate::updateEditorGeometry Update the editor for the item specified by index according to the style option given. More...
 

Detailed Description

The DoubleSpinBoxDelegate class.

Author
Florent Berbie

Constructor & Destructor Documentation

Gui::Widgets::Delegates::DoubleSpinBoxDelegate::DoubleSpinBoxDelegate ( QObject *  parent = 0)

Member Function Documentation

QWidget * Gui::Widgets::Delegates::DoubleSpinBoxDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

DoubleSpinBoxDelegate::createEditor Return a ComboBox specified by index item defined by the parent widget and style option which are used to control how the editor widgets appears.

Parameters
parentWidget parent
optionOption style
indexIndex for editing
Returns
DoubleSpinBoxDelegate
void Gui::Widgets::Delegates::DoubleSpinBoxDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

DoubleSpinBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index

Parameters
editorData edited
indexIndex of the model to edit
void Gui::Widgets::Delegates::DoubleSpinBoxDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

DoubleSpinBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index

Parameters
editorData edited
indexIndex of the model to edit
void Gui::Widgets::Delegates::DoubleSpinBoxDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

DoubleSpinBoxDelegate::updateEditorGeometry Update the editor for the item specified by index according to the style option given.

Parameters
editorEditor widget to update
optionStyle option
indexItem index

The documentation for this class was generated from the following files: