1 #ifndef TEXTAREADELEGATE_H
2 #define TEXTAREADELEGATE_H
4 #include <QItemDelegate>
32 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
42 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &)
const;
53 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &,
const QModelIndex &)
const;
62 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
68 #endif // TEXTAREADELEGATE_H
The TextareaDelegate class.
Definition: textareadelegate.h:16
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const
TextareaDelegate::createEditor Return a QTextEdit specified by index item defined by the parent widge...
Definition: textareadelegate.cpp:12
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const
TextareaDelegate::updateEditorGeometry Update the editor for the item specified by index according to...
Definition: textareadelegate.cpp:29
TextareaDelegate(QWidget *parent=0)
TextareaDelegate::TextareaDelegate.
Definition: textareadelegate.cpp:7
void setEditorData(QWidget *editor, const QModelIndex &index) const
TextareaDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data ...
Definition: textareadelegate.cpp:20
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
TextareaDelegate::setModelData Sets the data model from content in editor.
Definition: textareadelegate.cpp:37