summaryrefslogtreecommitdiff
path: root/gui/apicalldelegate.h
blob: c437958692e7254829fb64da032a5bfd6302568b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <QStyledItemDelegate>

class ApiCallDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
    ApiCallDelegate(QWidget *parent = 0);

    void paint(QPainter *painter, const QStyleOptionViewItem &option,
               const QModelIndex &index) const;
    QSize sizeHint(const QStyleOptionViewItem &option,
                   const QModelIndex &index) const;

private:
    QIcon m_stateEmblem;
    QIcon m_editEmblem;
    QIcon m_errorEmblem;
};