|
|
|
|
@ -35,7 +35,6 @@
|
|
|
|
|
|
|
|
|
|
#include <tdeglobal.h>
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
|
#include <tdeversion.h>
|
|
|
|
|
#include <kcalendarsystem.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
|
|
|
|
|
@ -215,13 +214,8 @@ void CalPainter::paint(bool useDeviceMetrics)
|
|
|
|
|
painter->setFont(f);
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignLeft|TQt::AlignVCenter,
|
|
|
|
|
TQString::number(year_));
|
|
|
|
|
#if KDE_IS_VERSION(3,2,0)
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
|
|
|
|
|
TDEGlobal::locale()->calendar()->monthName(month_, year_));
|
|
|
|
|
#else
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
|
|
|
|
|
TDEGlobal::locale()->monthName(month_));
|
|
|
|
|
#endif
|
|
|
|
|
painter->restore();
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
|
|
|
@ -249,14 +243,8 @@ void CalPainter::paint(bool useDeviceMetrics)
|
|
|
|
|
rsmall = r;
|
|
|
|
|
rsmall.setWidth(r.width() - 2);
|
|
|
|
|
rsmall.setHeight(r.height() - 2);
|
|
|
|
|
#if KDE_IS_VERSION(3,2,0)
|
|
|
|
|
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
|
|
|
|
|
TDEGlobal::locale()->calendar()->weekDayName(dayname, true));
|
|
|
|
|
#else
|
|
|
|
|
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
|
|
|
|
|
TDEGlobal::locale()->weekDayName(dayname, true));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
painter->restore();
|
|
|
|
|
@ -441,13 +429,8 @@ CalBlockPainter::CalBlockPainter(TQObject *parent, int year, int month,
|
|
|
|
|
painter->setFont(f);
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignLeft|TQt::AlignVCenter,
|
|
|
|
|
TQString::number(year));
|
|
|
|
|
#if KDE_IS_VERSION(3,2,0)
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
|
|
|
|
|
TDEGlobal::locale()->calendar()->monthName(month, year));
|
|
|
|
|
#else
|
|
|
|
|
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
|
|
|
|
|
TDEGlobal::locale()->monthName(month));
|
|
|
|
|
#endif
|
|
|
|
|
painter->restore();
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
|
|
|
@ -475,13 +458,8 @@ CalBlockPainter::CalBlockPainter(TQObject *parent, int year, int month,
|
|
|
|
|
rsmall = r;
|
|
|
|
|
rsmall.setWidth(r.width() - 2);
|
|
|
|
|
rsmall.setHeight(r.height() - 2);
|
|
|
|
|
#if KDE_IS_VERSION(3,2,0)
|
|
|
|
|
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
|
|
|
|
|
TDEGlobal::locale()->calendar()->weekDayName(dayname, true));
|
|
|
|
|
#else
|
|
|
|
|
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
|
|
|
|
|
TDEGlobal::locale()->weekDayName(dayname, true));
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
painter->restore();
|
|
|
|
|
|