File: apicalldelegate.h

package info (click to toggle)
apitrace 11.1%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 13,648 kB
  • sloc: cpp: 183,110; python: 33,685; ansic: 25,073; sh: 143; makefile: 88
file content (21 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (6)
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 override;
    QSize sizeHint(const QStyleOptionViewItem &option,
                   const QModelIndex &index) const override;

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