45 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
47 QSize sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
49 void setVerticalSpacing(
int value );
51 int verticalSpacing()
const;
53 void setHorizontalSpacing(
int value );
55 int horizontalSpacing()
const;
58 QFont detailFont(
const QStyleOptionViewItem &option )
const;
59 QFont categoryFont(
const QStyleOptionViewItem &option )
const;
60 QFont titleFont(
const QStyleOptionViewItem &option )
const;
61 void drawHighlight(
const QStyleOptionViewItem &option, QPainter *thepPainter,
int height )
const;
63 QStringList wordWrap(
const QString &
string,
const QFontMetrics &metrics,
int width )
const;
64 void paintManually( QPainter *painter,
const QStyleOptionViewItem &option,
const QgsDetailedItemData &data )
const;
65 void paintAsWidget( QPainter *painter,
const QStyleOptionViewItem &option,
const QgsDetailedItemData &data )
const;
68 QCheckBox *mpCheckBox =
nullptr;
70 int mHorizontalSpacing;