syncthingtray/tray/gui/devbuttonsitemdelegate.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
464 B
C++

#ifndef DEVBUTTONSITEMDELEGATE_H
#define DEVBUTTONSITEMDELEGATE_H
#include <QStyledItemDelegate>
#include <QPixmap>
namespace QtGui {
class DevButtonsItemDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
DevButtonsItemDelegate(QObject *parent);
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const;
private:
const QPixmap m_pauseIcon;
const QPixmap m_resumeIcon;
};
}
#endif // DEVBUTTONSITEMDELEGATE_H