The behavior of clang-format slightly changed in Clang 5.0.0: http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
23 lines
529 B
C++
23 lines
529 B
C++
#ifndef DOWNLOADITEMDELEGATE_H
|
|
#define DOWNLOADITEMDELEGATE_H
|
|
|
|
#include <QPixmap>
|
|
#include <QStyledItemDelegate>
|
|
|
|
namespace QtGui {
|
|
|
|
class DownloadItemDelegate : public QStyledItemDelegate {
|
|
Q_OBJECT
|
|
public:
|
|
DownloadItemDelegate(QObject *parent);
|
|
|
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const;
|
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
|
|
private:
|
|
const QPixmap m_folderIcon;
|
|
};
|
|
} // namespace QtGui
|
|
|
|
#endif // DOWNLOADITEMDELEGATE_H
|