19 lines
469 B
C
19 lines
469 B
C
|
|
#ifndef PGLABITEMDELEGATE_H
|
|||
|
|
#define PGLABITEMDELEGATE_H
|
|||
|
|
|
|||
|
|
#include <QStyledItemDelegate>
|
|||
|
|
|
|||
|
|
class PgLabItemDelegate : public QStyledItemDelegate
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
PgLabItemDelegate(QObject *parent = nullptr);
|
|||
|
|
|
|||
|
|
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const override;
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // PGLABITEMDELEGATE_H
|