17 #ifndef QGSDETAILEDITEMDELEGATE_H
18 #define QGSDETAILEDITEMDELEGATE_H
20 #include <QAbstractItemDelegate>
35 public QAbstractItemDelegate
42 void paint( QPainter * thePainter,
43 const QStyleOptionViewItem & theOption,
44 const QModelIndex & theIndex )
const;
46 QSize sizeHint(
const QStyleOptionViewItem & theOption,
47 const QModelIndex & theIndex )
const;
49 void setVerticalSpacing(
int theValue );
51 int verticalSpacing()
const;
53 void setHorizontalSpacing(
int theValue );
55 int horizontalSpacing()
const;
58 QFont detailFont(
const QStyleOptionViewItem &theOption )
const;
59 QFont categoryFont(
const QStyleOptionViewItem &theOption )
const;
60 QFont titleFont(
const QStyleOptionViewItem &theOption )
const;
61 void drawHighlight(
const QStyleOptionViewItem &theOption,
62 QPainter * thepPainter,
63 int theHeight )
const;
65 QStringList wordWrap( QString theString,
66 QFontMetrics theMetrics,
68 void paintManually( QPainter * thePainter,
69 const QStyleOptionViewItem & theOption,
71 void paintAsWidget( QPainter * thePainter,
72 const QStyleOptionViewItem & theOption,
74 int height(
const QStyleOptionViewItem & theOption,
77 QCheckBox * mpCheckBox;
79 int mHorizontalSpacing;
82 #endif //QGSDETAILEDITEMDELEGATE_H