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