syncthingtray/tray/gui/dirbuttonsitemdelegate.h
Martchus 6470038fc7 Refactor to allow sharing backend with other apps
Intended for creating command line tool and plasmoid
2016-09-30 23:58:45 +02:00

25 lines
466 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;
private:
const QPixmap m_refreshIcon;
const QPixmap m_folderIcon;
};
}
#endif // DIRBUTTONSITEMDELEGATE_H