syncthingtray/tray/gui/dirbuttonsitemdelegate.h

25 lines
547 B
C
Raw Normal View History

2016-08-25 00:45:32 +02:00
#ifndef DIRBUTTONSITEMDELEGATE_H
#define DIRBUTTONSITEMDELEGATE_H
#include <QPixmap>
2017-05-01 03:34:43 +02:00
#include <QStyledItemDelegate>
2016-08-25 00:45:32 +02:00
namespace QtGui {
2017-05-01 03:34:43 +02:00
class DirButtonsItemDelegate : public QStyledItemDelegate {
2016-08-25 00:45:32 +02:00
Q_OBJECT
public:
DirButtonsItemDelegate(QObject *parent);
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const;
private:
const QPixmap m_refreshIcon;
const QPixmap m_folderIcon;
2017-02-23 15:49:58 +01:00
const QPixmap m_pauseIcon;
const QPixmap m_resumeIcon;
2016-08-25 00:45:32 +02:00
};
} // namespace QtGui
2016-08-25 00:45:32 +02:00
#endif // DIRBUTTONSITEMDELEGATE_H