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

The TextareaDelegate class. More...

#include <textareadelegate.h>

Inheritance diagram for Gui::Widgets::Delegates::TextareaDelegate:

Public Member Functions

 TextareaDelegate (QWidget *parent=0)
 TextareaDelegate::TextareaDelegate. More...
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 TextareaDelegate::setModelData Sets the data model from content in editor. More...
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const
 TextareaDelegate::updateEditorGeometry Update the editor for the item specified by index according to the style option given. More...
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const
 TextareaDelegate::createEditor Return a QTextEdit 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
 TextareaDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index More...
 

Detailed Description

The TextareaDelegate class.

Author
Antoine de Roquemaurel

Constructor & Destructor Documentation

Gui::Widgets::Delegates::TextareaDelegate::TextareaDelegate ( QWidget *  parent = 0)

Member Function Documentation

QWidget * Gui::Widgets::Delegates::TextareaDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  ,
const QModelIndex &   
) const

TextareaDelegate::createEditor Return a QTextEdit 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
TextareaDelegate
void Gui::Widgets::Delegates::TextareaDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

TextareaDelegate::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::TextareaDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

TextareaDelegate::setModelData Sets the data model from content in editor.

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

TextareaDelegate::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: