4 #ifndef pqMaterialAttributesDelegate_h 5 #define pqMaterialAttributesDelegate_h 8 #include <QStyledItemDelegate> 16 typedef QStyledItemDelegate Superclass;
23 QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex&
index)
const override;
29 QWidget* createEditor(
30 QWidget* parent,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
35 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override 45 QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const override;
51 QWidget* createPropertiesEditor(QVariantList list, QWidget* parent)
const;
56 QVariantList getPropertiesFromEditor(QWidget* editor)
const;
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqMaterialAttributesDelegate is used to customize material attributes table view. ...
void setEditorData(QWidget *editor, const QModelIndex &index) const override
do nothing, everything is handled in createEditor method