From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/plugins/printing/year/yearprint.cpp | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'korganizer/plugins/printing/year/yearprint.cpp') 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 #include -#include -#include -#include -#include +#include +#include +#include +#include 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( 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: "<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: "< 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: "<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: "< 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 ); -- cgit v1.2.1