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 );
36 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;
50 #endif // QGSATTRIBUTELISTVIEWDELEGATE_H