class
ourCalendarWidget :
public
QCalendarWidget
{
Q_OBJECT
public
:
ourCalendarWidget(
QWidget
*parent = 0) :
QCalendarWidget
(parent){}
~ourCalendarWidget() {}
void
ourCall(
QDate
date)
{
update();
}
protected
:
void
paintCell(
QPainter
*painter,
const
QRect
&rect,
const
QDate
&date)
const
{
if
( )
{
painter->save();
painter->drawEllipse(rect);
painter->drawText(rec, Qt::TextSingleLine, Qt::AlignCenter,
QString
::number(date.day()));
painter->restore();
}
else
{
QCalendarWidget
::paintCell(painter, rect, date);
}
}