12345678910111213141516 |
- #ifndef MYTIMEDELEGATE_H
- #define MYTIMEDELEGATE_H
- #include <QStyledItemDelegate>
- class MyTimeDelegate : public QStyledItemDelegate
- {
- Q_OBJECT
- public:
- const QColor c_bkColor = QColor(255,255,255);
- explicit MyTimeDelegate(QObject *parent = nullptr);
- protected:
- void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
- };
- #endif // MYTIMEDELEGATE_H
|