1 2 3 4 5 6 7 8 |
class xxxx : public QAbstractItemDelegate { public: xxxx( QObject *parent = 0 ); void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const; QSize sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const; }; |