2016-09-21 21:09:12 +02:00
|
|
|
#ifndef DOWNLOADITEMDELEGATE_H
|
|
|
|
#define DOWNLOADITEMDELEGATE_H
|
|
|
|
|
|
|
|
#include <QPixmap>
|
2017-05-01 03:34:43 +02:00
|
|
|
#include <QStyledItemDelegate>
|
2016-09-21 21:09:12 +02:00
|
|
|
|
|
|
|
namespace QtGui {
|
|
|
|
|
2017-05-01 03:34:43 +02:00
|
|
|
class DownloadItemDelegate : public QStyledItemDelegate {
|
2016-09-21 21:09:12 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DownloadItemDelegate(QObject *parent);
|
|
|
|
|
2018-10-10 21:26:46 +02:00
|
|
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
|
|
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
2016-09-21 21:09:12 +02:00
|
|
|
};
|
2017-09-17 21:48:15 +02:00
|
|
|
} // namespace QtGui
|
2016-09-21 21:09:12 +02:00
|
|
|
|
|
|
|
#endif // DOWNLOADITEMDELEGATE_H
|