Commit | Line | Data |
---|---|---|
cf76e892 JPM |
1 | // |
2 | // imagedelegate.h: Class definition | |
3 | // | |
4 | ||
5 | #ifndef __IMAGEDELEGATE_H__ | |
6 | #define __IMAGEDELEGATE_H__ | |
7 | ||
8 | #include <QtWidgets> | |
9 | ||
10 | class ImageDelegate: public QAbstractItemDelegate | |
11 | { | |
12 | // Q_OBJECT | |
13 | ||
14 | public: | |
15 | // ImageDelegate(QObject * parent = 0); | |
16 | ImageDelegate(); | |
17 | ||
18 | void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const; | |
19 | QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const; | |
20 | ||
21 | // public slots: | |
22 | // void setPixelSize(int size); | |
23 | ||
24 | private: | |
25 | // int pixelSize; | |
26 | QImage cartSmall; | |
27 | }; | |
28 | ||
29 | #endif // __IMAGEDELEGATE_H__ |