17 #ifndef QGSDETAILEDITEMDELEGATE_H
18 #define QGSDETAILEDITEMDELEGATE_H
20 #include <QAbstractItemDelegate>
49 void setVerticalSpacing(
int theValue );
51 int verticalSpacing()
const;
53 void setHorizontalSpacing(
int theValue );
55 int horizontalSpacing()
const;
63 int theHeight )
const;
68 void paintManually(
QPainter *thePainter,
71 void paintAsWidget(
QPainter *thePainter,
79 int mHorizontalSpacing;
82 #endif //QGSDETAILEDITEMDELEGATE_H
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom ...
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const =0
A custom model/view delegate that can display an icon, heading and detail sections.