1 #ifndef QGSATTRIBUTELISTVIEWDELEGATE_H
2 #define QGSATTRIBUTELISTVIEWDELEGATE_H
4 #include <QItemDelegate>
5 #include <QItemSelectionModel>
19 static int const sIconSize = 24;
29 void setEditSelectionModel( QItemSelectionModel* editSelectionModel );
31 Element positionToElement(
const QPoint& pos );
35 void setCurrentFeatureEdited(
bool state );
38 void editButtonClicked( QModelIndex&
index );
41 virtual QSize sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex&
index )
const;
42 virtual void paint( QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex&
index )
const;
46 QItemSelectionModel* mEditSelectionModel;
49 bool mCurrentFeatureEdited;
52 #endif // QGSATTRIBUTELISTVIEWDELEGATE_H