2 // imagedelegate.h: Class definition
5 #ifndef __IMAGEDELEGATE_H__
6 #define __IMAGEDELEGATE_H__
10 class ImageDelegate: public QAbstractItemDelegate
15 ImageDelegate(QObject * parent = 0);
17 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
18 QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index ) const;
21 // void setPixelSize(int size);
27 #endif // __IMAGEDELEGATE_H__