农历日历 v1.0.4
载入中...
搜索中...
未找到
LunarCalendarDelegate.h
1
6#ifndef LUNARCALENDARDELEGATE_H_KL
7#define LUNARCALENDARDELEGATE_H_KL
8
9#include <QStyledItemDelegate>
10
15class CLunarCalendarDelegate : public QStyledItemDelegate
16{
17 Q_OBJECT
18
19public:
20 explicit CLunarCalendarDelegate(QObject *parent = nullptr);
21
22public:
23 virtual void paint(QPainter *painter,
24 const QStyleOptionViewItem &o,
25 const QModelIndex &index) const override;
26};
27
32class CLunarCalendarHeaderDelegate : public QStyledItemDelegate
33{
34 Q_OBJECT
35
36public:
37 explicit CLunarCalendarHeaderDelegate(QObject *parent = nullptr);
38
39public:
40 virtual void paint(QPainter *painter,
41 const QStyleOptionViewItem &option,
42 const QModelIndex &index) const override;
43};
44
45#endif // LUNARCALENDARDELEGATE_H_KL
virtual void paint(QPainter *painter, const QStyleOptionViewItem &o, const QModelIndex &index) const override