16 #ifndef QGSATTRIBUTETABLEDELEGATE_H
17 #define QGSATTRIBUTETABLEDELEGATE_H
19 #include <QItemDelegate>
49 : QItemDelegate( parent )
57 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
62 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
70 void setModelData( QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index )
const override;
77 void setEditorData( QWidget *editor,
const QModelIndex &index )
const override;
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
void actionColumnItemPainted(const QModelIndex &index) const
Emitted when an action column item is painted.
QgsAttributeTableDelegate(QObject *parent=nullptr)
Constructor.
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Represents a vector layer which manages a vector based data sets.