15 #ifndef QGSATTRIBUTELISTVIEWDELEGATE_H
16 #define QGSATTRIBUTELISTVIEWDELEGATE_H
18 #include <QItemDelegate>
19 #include <QItemSelectionModel>
36 static const int ICON_SIZE = 24;
46 void setEditSelectionModel( QItemSelectionModel *editSelectionModel );
48 Element positionToElement( QPoint pos );
52 void setCurrentFeatureEdited(
bool state );
58 QSize sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
59 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
63 QItemSelectionModel *mEditSelectionModel =
nullptr;
66 bool mCurrentFeatureEdited;
69 #endif // QGSATTRIBUTELISTVIEWDELEGATE_H