17#ifndef AEONGAMES_PROPERTYDELEGATE_H
18#define AEONGAMES_PROPERTYDELEGATE_H
19#include <QStyledItemDelegate>
42 QWidget *
createEditor ( QWidget *parent,
const QStyleOptionViewItem &option,
43 const QModelIndex &index )
const override;
50 void setEditorData ( QWidget *editor,
const QModelIndex &index )
const override;
57 void setModelData ( QWidget *editor, QAbstractItemModel *model,
58 const QModelIndex &index )
const override;
67 const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
PropertyDelegate(QObject *parent=nullptr)
Construct the property delegate.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Create an editor widget for the given model index.
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Set the editor widget data from the model.
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Write the editor widget data back to the model.
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Update the editor geometry to match the view item area.
<- This is here just for the literals