农历日历
v1.0.4
载入中...
搜索中...
未找到
Src
LunarCalendarDelegate.h
1
6
#ifndef LUNARCALENDARDELEGATE_H_KL
7
#define LUNARCALENDARDELEGATE_H_KL
8
9
#include <QStyledItemDelegate>
10
15
class
CLunarCalendarDelegate
:
public
QStyledItemDelegate
16
{
17
Q_OBJECT
18
19
public
:
20
explicit
CLunarCalendarDelegate
(QObject *parent =
nullptr
);
21
22
public
:
23
virtual
void
paint
(QPainter *painter,
24
const
QStyleOptionViewItem &o,
25
const
QModelIndex &index)
const override
;
26
};
27
32
class
CLunarCalendarHeaderDelegate
:
public
QStyledItemDelegate
33
{
34
Q_OBJECT
35
36
public
:
37
explicit
CLunarCalendarHeaderDelegate
(QObject *parent =
nullptr
);
38
39
public
:
40
virtual
void
paint(QPainter *painter,
41
const
QStyleOptionViewItem &option,
42
const
QModelIndex &index)
const override
;
43
};
44
45
#endif
// LUNARCALENDARDELEGATE_H_KL
CLunarCalendarDelegate
农历代理
Definition
LunarCalendarDelegate.h:16
CLunarCalendarDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &o, const QModelIndex &index) const override
Definition
LunarCalendarDelegate.cpp:54
CLunarCalendarHeaderDelegate
农历头代理
Definition
LunarCalendarDelegate.h:33
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力