123456789101112131415161718 |
- #ifndef COLORDELEGATE_H
- #define COLORDELEGATE_H
- #include <QStyledItemDelegate>
- #include <QPainter>
- class ColorDelegate : public QStyledItemDelegate
- {
- Q_OBJECT
- public:
- ColorDelegate(QObject *parent = nullptr) : QStyledItemDelegate(parent) {}
- void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
-
- };
- #endif /* COLORDELEGATE_H */
|