4 #include <QStyledItemDelegate>
6 class TreeDelegate: public QStyledItemDelegate {
9 TreeDelegate(QObject *parent=0);
10 QString displayText (const QVariant & value, const QLocale & locale ) const;
12 void paint(QPainter *painter, const QStyleOptionViewItem &option,
13 const QModelIndex &index) const;
14 QSize sizeHint(const QStyleOptionViewItem &option,
15 const QModelIndex &index ) const;