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 );
39 virtual QSize sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex&
index )
const;
40 virtual void paint( QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex&
index )
const;
48 #endif // QGSATTRIBUTELISTVIEWDELEGATE_H