#include <property_delegate.h>
Public Member Functions | |
PropertyDelegate (QObject *parent=0) | |
QWidget * | createEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
create the editor when the user clicked on the property | |
void | setEditorData (QWidget *, const QModelIndex &) const |
set the editor data when editor was created | |
void | setModelData (QWidget *, QAbstractItemModel *, const QModelIndex &) const |
set the model data when the user leave the editor | |
void | updateEditorGeometry (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
set the editor geometry |
PropertyDelegate::PropertyDelegate | ( | QObject * | parent = 0 |
) |
QWidget * PropertyDelegate::createEditor | ( | QWidget * | , | |
const QStyleOptionViewItem & | , | |||
const QModelIndex & | ||||
) | const |
void PropertyDelegate::setEditorData | ( | QWidget * | , | |
const QModelIndex & | ||||
) | const |
void PropertyDelegate::setModelData | ( | QWidget * | , | |
QAbstractItemModel * | , | |||
const QModelIndex & | ||||
) | const |
void PropertyDelegate::updateEditorGeometry | ( | QWidget * | , | |
const QStyleOptionViewItem & | , | |||
const QModelIndex & | ||||
) | const |