]> git.cworth.org Git - apitrace/blob - gui/apicalldelegate.h
Use skiplist-based FastCallSet within trace::CallSet
[apitrace] / gui / apicalldelegate.h
1 #ifndef APICALLDELEGATE_H
2 #define APICALLDELEGATE_H
3
4 #include <QStyledItemDelegate>
5
6 class ApiCallDelegate : public QStyledItemDelegate
7 {
8     Q_OBJECT
9
10 public:
11     ApiCallDelegate(QWidget *parent = 0);
12
13     void paint(QPainter *painter, const QStyleOptionViewItem &option,
14                const QModelIndex &index) const;
15     QSize sizeHint(const QStyleOptionViewItem &option,
16                    const QModelIndex &index) const;
17
18 private:
19     QIcon m_stateEmblem;
20     QIcon m_editEmblem;
21     QIcon m_errorEmblem;
22 };
23
24 #endif