syncthingtray/gui/dirbuttonsitemdelegate.h

26 lines
556 B
C++

#ifndef DIRBUTTONSITEMDELEGATE_H
#define DIRBUTTONSITEMDELEGATE_H
#include <QStyledItemDelegate>
#include <QPixmap>
namespace QtGui {
class DirButtonsItemDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
DirButtonsItemDelegate(QObject *parent);
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const;
//QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
private:
const QPixmap m_refreshIcon;
const QPixmap m_folderIcon;
};
}
#endif // DIRBUTTONSITEMDELEGATE_H