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
25 lines
547 B
C++
25 lines
547 B
C++
#ifndef DIRBUTTONSITEMDELEGATE_H
|
|
#define DIRBUTTONSITEMDELEGATE_H
|
|
|
|
#include <QPixmap>
|
|
#include <QStyledItemDelegate>
|
|
|
|
namespace QtGui {
|
|
|
|
class DirButtonsItemDelegate : public QStyledItemDelegate {
|
|
Q_OBJECT
|
|
public:
|
|
DirButtonsItemDelegate(QObject *parent);
|
|
|
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const;
|
|
|
|
private:
|
|
const QPixmap m_refreshIcon;
|
|
const QPixmap m_folderIcon;
|
|
const QPixmap m_pauseIcon;
|
|
const QPixmap m_resumeIcon;
|
|
};
|
|
} // namespace QtGui
|
|
|
|
#endif // DIRBUTTONSITEMDELEGATE_H
|