summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/printing/year
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/printing/year')
-rw-r--r--korganizer/plugins/printing/year/yearprint.cpp34
-rw-r--r--korganizer/plugins/printing/year/yearprint.h10
2 files changed, 22 insertions, 22 deletions
diff --git a/korganizer/plugins/printing/year/yearprint.cpp b/korganizer/plugins/printing/year/yearprint.cpp
index d71cd9f08..5f3a9dc68 100644
--- a/korganizer/plugins/printing/year/yearprint.cpp
+++ b/korganizer/plugins/printing/year/yearprint.cpp
@@ -34,10 +34,10 @@
#include <kcalendarsystem.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qpainter.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqpainter.h>
class YearPrintFactory : public KOrg::PrintPluginFactory {
public:
@@ -51,7 +51,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_yearlyprint, YearPrintFactory )
* Print Year
**************************************************************/
-QWidget *CalPrintYear::createConfigWidget( QWidget *w )
+TQWidget *CalPrintYear::createConfigWidget( TQWidget *w )
{
return new CalPrintYearConfig_Base( w );
}
@@ -74,7 +74,7 @@ void CalPrintYear::setSettingsWidget()
dynamic_cast<CalPrintYearConfig_Base*>( mConfigWidget );
if ( cfg ) {
const KCalendarSystem *calsys = calendarSystem();
- QDate start;
+ TQDate start;
calsys->setYMD( start, mYear, 1, 1 );
int months = calsys->monthsInYear( start );
int pages=0, prevPages=0;
@@ -82,12 +82,12 @@ void CalPrintYear::setSettingsWidget()
pages = (months-1)/i + 1;
if ( pages != prevPages ) {
prevPages = pages;
- cfg->mPages->insertItem( QString::number( pages ), 0 );
+ cfg->mPages->insertItem( TQString::number( pages ), 0 );
}
}
cfg->mYear->setValue( mYear );
- cfg->mPages->setCurrentText( QString::number( mPages ) );
+ cfg->mPages->setCurrentText( TQString::number( mPages ) );
cfg->mSubDays->setCurrentItem( (mSubDaysEvents==Text)?0:1 );
cfg->mHolidays->setCurrentItem( (mHolidaysEvents==Text)?0:1 );
@@ -125,7 +125,7 @@ KPrinter::Orientation CalPrintYear::defaultOrientation()
}
-void CalPrintYear::setDateRange( const QDate& from, const QDate& to )
+void CalPrintYear::setDateRange( const TQDate& from, const TQDate& to )
{
CalPrintPluginBase::setDateRange( from, to );
CalPrintYearConfig_Base *cfg =
@@ -135,21 +135,21 @@ void CalPrintYear::setDateRange( const QDate& from, const QDate& to )
}
}
-void CalPrintYear::print( QPainter &p, int width, int height )
+void CalPrintYear::print( TQPainter &p, int width, int height )
{
kdDebug()<<"CalPrintYear::print, width: "<<width<<", height: "<<height<<endl;
- QRect headerBox( 0, 0, width, headerHeight() );
+ TQRect headerBox( 0, 0, width, headerHeight() );
kdDebug()<<"headerBox: "<<headerBox<<endl;
const KCalendarSystem *calsys = calendarSystem();
KLocale *locale = KGlobal::locale();
if ( !calsys || !locale ) return;
- QDate start;
+ TQDate start;
calsys->setYMD( start, mYear, 1, 1 );
// Determine the nr of months and the max nr of days per month (dependent on
// calendar system!!!!)
- QDate temp( start );
+ TQDate temp( start );
int months = calsys->monthsInYear( start );
int maxdays = 1;
for ( int i = 1; i< months; ++i ) {
@@ -167,9 +167,9 @@ kdDebug()<<"headerBox: "<<headerBox<<endl;
if ( page > 0 ) {
mPrinter->newPage();
}
- QDate end( calsys->addMonths( start, monthsPerPage ) );
+ TQDate end( calsys->addMonths( start, monthsPerPage ) );
end = calsys->addDays( end, -1 );
- QString title;
+ TQString title;
if ( orientation() == KPrinter::Landscape ) {
title = i18n("date from - to", "%1 - %2");
} else {
@@ -181,7 +181,7 @@ kdDebug()<<"headerBox: "<<headerBox<<endl;
calsys->addMonths( start, -1), calsys->addMonths( start, monthsPerPage ),
headerBox );
- QRect monthesBox( headerBox );
+ TQRect monthesBox( headerBox );
monthesBox.setTop( monthesBox.bottom() + padding() );
monthesBox.setBottom( height );
@@ -192,7 +192,7 @@ kdDebug()<<"headerBox: "<<headerBox<<endl;
if ( ++thismonth > months ) break;
int xstart = int(j*monthwidth + 0.5);
int xend = int((j+1)*monthwidth + 0.5);
- QRect monthBox( xstart, monthesBox.top(), xend-xstart, monthesBox.height() );
+ TQRect monthBox( xstart, monthesBox.top(), xend-xstart, monthesBox.height() );
drawMonth( p, temp, monthBox, maxdays, mSubDaysEvents, mHolidaysEvents );
temp = calsys->addMonths( temp, 1 );
diff --git a/korganizer/plugins/printing/year/yearprint.h b/korganizer/plugins/printing/year/yearprint.h
index 3191150b2..f993e5dab 100644
--- a/korganizer/plugins/printing/year/yearprint.h
+++ b/korganizer/plugins/printing/year/yearprint.h
@@ -39,20 +39,20 @@ class CalPrintYear : public CalPrintPluginBase
public:
CalPrintYear():CalPrintPluginBase() {}
virtual ~CalPrintYear() {}
- virtual QString description() { return i18n("Print &Year"); }
- virtual QString info() { return i18n("Prints a calendar for an entire year"); }
+ virtual TQString description() { return i18n("Print &Year"); }
+ virtual TQString info() { return i18n("Prints a calendar for an entire year"); }
virtual int sortID() { return 900; }
virtual bool enabled() { return true; }
- virtual QWidget *createConfigWidget( QWidget* );
+ virtual TQWidget *createConfigWidget( TQWidget* );
virtual KPrinter::Orientation defaultOrientation();
public:
- virtual void print(QPainter &p, int width, int height);
+ virtual void print(TQPainter &p, int width, int height);
virtual void readSettingsWidget();
virtual void setSettingsWidget();
virtual void loadConfig();
virtual void saveConfig();
- virtual void setDateRange( const QDate& from, const QDate& to );
+ virtual void setDateRange( const TQDate& from, const TQDate& to );
protected:
int mYear;