summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/printing
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/printing')
-rw-r--r--korganizer/plugins/printing/journal/journalprint.cpp12
-rw-r--r--korganizer/plugins/printing/journal/journalprint.h10
-rw-r--r--korganizer/plugins/printing/list/listprint.cpp8
-rw-r--r--korganizer/plugins/printing/list/listprint.h10
-rw-r--r--korganizer/plugins/printing/whatsnext/whatsnextprint.cpp8
-rw-r--r--korganizer/plugins/printing/whatsnext/whatsnextprint.h10
-rw-r--r--korganizer/plugins/printing/year/yearprint.cpp34
-rw-r--r--korganizer/plugins/printing/year/yearprint.h10
8 files changed, 51 insertions, 51 deletions
diff --git a/korganizer/plugins/printing/journal/journalprint.cpp b/korganizer/plugins/printing/journal/journalprint.cpp
index 31b1b10b6..551f23a9d 100644
--- a/korganizer/plugins/printing/journal/journalprint.cpp
+++ b/korganizer/plugins/printing/journal/journalprint.cpp
@@ -33,7 +33,7 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qbuttongroup.h>
+#include <tqbuttongroup.h>
#include "calprintjournalconfig_base.h"
@@ -50,7 +50,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_journalprint, JournalPrintFactory )
* Print Journal
**************************************************************/
-QWidget *CalPrintJournal::createConfigWidget( QWidget *w )
+TQWidget *CalPrintJournal::createConfigWidget( TQWidget *w )
{
return new CalPrintJournalConfig_Base( w );
}
@@ -96,7 +96,7 @@ void CalPrintJournal::saveConfig()
}
}
-void CalPrintJournal::setDateRange( const QDate& from, const QDate& to )
+void CalPrintJournal::setDateRange( const TQDate& from, const TQDate& to )
{
CalPrintPluginBase::setDateRange( from, to );
CalPrintJournalConfig_Base *cfg =
@@ -107,7 +107,7 @@ void CalPrintJournal::setDateRange( const QDate& from, const QDate& to )
}
}
-void CalPrintJournal::print( QPainter &p, int width, int height )
+void CalPrintJournal::print( TQPainter &p, int width, int height )
{
int x=0, y=0;
Journal::List journals( mCalendar->journals() );
@@ -116,14 +116,14 @@ void CalPrintJournal::print( QPainter &p, int width, int height )
journals.clear();
Journal::List::Iterator it = allJournals.begin();
for ( ; it != allJournals.end(); ++it ) {
- QDate dt = (*it)->dtStart().date();
+ TQDate dt = (*it)->dtStart().date();
if ( mFromDate <= dt && dt <= mToDate ) {
journals.append( *it );
}
}
}
- drawHeader( p, i18n("Journal entries"), QDate(), QDate(), QRect( 0, 0, width, headerHeight() ) );
+ drawHeader( p, i18n("Journal entries"), TQDate(), TQDate(), TQRect( 0, 0, width, headerHeight() ) );
y = headerHeight() + 15;
Journal::List::Iterator it = journals.begin();
diff --git a/korganizer/plugins/printing/journal/journalprint.h b/korganizer/plugins/printing/journal/journalprint.h
index fb91759f1..f1c0db44c 100644
--- a/korganizer/plugins/printing/journal/journalprint.h
+++ b/korganizer/plugins/printing/journal/journalprint.h
@@ -40,19 +40,19 @@ class CalPrintJournal : public CalPrintPluginBase
public:
CalPrintJournal():CalPrintPluginBase() {}
virtual ~CalPrintJournal() {}
- virtual QString description() { return i18n("Print &journal"); }
- virtual QString info() { return i18n("Prints all journals for a given date range"); }
+ virtual TQString description() { return i18n("Print &journal"); }
+ virtual TQString info() { return i18n("Prints all journals for a given date range"); }
virtual int sortID() { return CalPrinterBase::Journallist; }
virtual bool enabled() { return true; }
- virtual QWidget *createConfigWidget( QWidget* );
+ virtual TQWidget *createConfigWidget( TQWidget* );
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:
bool mUseDateRange;
diff --git a/korganizer/plugins/printing/list/listprint.cpp b/korganizer/plugins/printing/list/listprint.cpp
index 0221f1c67..4a90bfb5b 100644
--- a/korganizer/plugins/printing/list/listprint.cpp
+++ b/korganizer/plugins/printing/list/listprint.cpp
@@ -34,7 +34,7 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qbuttongroup.h>
+#include <tqbuttongroup.h>
#include "calprintlistconfig_base.h"
@@ -52,7 +52,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_listprint, ListPrintFactory )
* Print Day
**************************************************************/
-QWidget *CalPrintList::createConfigWidget( QWidget *w )
+TQWidget *CalPrintList::createConfigWidget( TQWidget *w )
{
return new CalPrintListConfig_Base( w );
}
@@ -98,7 +98,7 @@ void CalPrintList::saveConfig()
}
}
-void CalPrintList::setDateRange( const QDate& from, const QDate& to )
+void CalPrintList::setDateRange( const TQDate& from, const TQDate& to )
{
CalPrintPluginBase::setDateRange( from, to );
CalPrintListConfig_Base *cfg =
@@ -109,7 +109,7 @@ void CalPrintList::setDateRange( const QDate& from, const QDate& to )
}
}
-void CalPrintList::print( QPainter &p, int width, int height )
+void CalPrintList::print( TQPainter &p, int width, int height )
{
}
diff --git a/korganizer/plugins/printing/list/listprint.h b/korganizer/plugins/printing/list/listprint.h
index dc370ba86..561e0d467 100644
--- a/korganizer/plugins/printing/list/listprint.h
+++ b/korganizer/plugins/printing/list/listprint.h
@@ -39,18 +39,18 @@ class CalPrintList : public CalPrintPluginBase
public:
CalPrintList():CalPrintPluginBase() {}
virtual ~CalPrintList() {}
- virtual QString description() { return i18n("Print list"); }
- virtual QString info() { return i18n("Prints a list of events and to-dos"); }
+ virtual TQString description() { return i18n("Print list"); }
+ virtual TQString info() { return i18n("Prints a list of events and to-dos"); }
virtual int sortID() { return 950; }
- virtual QWidget *createConfigWidget( QWidget* );
+ virtual TQWidget *createConfigWidget( TQWidget* );
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:
bool mUseDateRange;
diff --git a/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp b/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp
index 48dd30436..b5d43ae97 100644
--- a/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp
+++ b/korganizer/plugins/printing/whatsnext/whatsnextprint.cpp
@@ -34,7 +34,7 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qbuttongroup.h>
+#include <tqbuttongroup.h>
#include "calprintwhatsnextconfig_base.h"
@@ -51,7 +51,7 @@ K_EXPORT_COMPONENT_FACTORY( libkorg_whatsnextprint, WhatsNextPrintFactory )
* Print What's Next
**************************************************************/
-QWidget *CalPrintWhatsNext::createConfigWidget( QWidget *w )
+TQWidget *CalPrintWhatsNext::createConfigWidget( TQWidget *w )
{
return new CalPrintWhatsNextConfig_Base( w );
}
@@ -97,7 +97,7 @@ void CalPrintWhatsNext::saveConfig()
}
}
-void CalPrintWhatsNext::setDateRange( const QDate& from, const QDate& to )
+void CalPrintWhatsNext::setDateRange( const TQDate& from, const TQDate& to )
{
CalPrintPluginBase::setDateRange( from, to );
CalPrintWhatsNextConfig_Base *cfg =
@@ -108,7 +108,7 @@ void CalPrintWhatsNext::setDateRange( const QDate& from, const QDate& to )
}
}
-void CalPrintWhatsNext::print( QPainter &p, int width, int height )
+void CalPrintWhatsNext::print( TQPainter &p, int width, int height )
{
}
diff --git a/korganizer/plugins/printing/whatsnext/whatsnextprint.h b/korganizer/plugins/printing/whatsnext/whatsnextprint.h
index bdba1f71b..fb9ee66ee 100644
--- a/korganizer/plugins/printing/whatsnext/whatsnextprint.h
+++ b/korganizer/plugins/printing/whatsnext/whatsnextprint.h
@@ -39,18 +39,18 @@ class CalPrintWhatsNext : public CalPrintPluginBase
public:
CalPrintWhatsNext():CalPrintPluginBase() {}
virtual ~CalPrintWhatsNext() {}
- virtual QString description() { return i18n("Print What's Next"); }
- virtual QString info() { return i18n("Prints a list of all upcoming events and todos."); }
+ virtual TQString description() { return i18n("Print What's Next"); }
+ virtual TQString info() { return i18n("Prints a list of all upcoming events and todos."); }
virtual int sortID() { return 50; }
- virtual QWidget *createConfigWidget( QWidget* );
+ virtual TQWidget *createConfigWidget( TQWidget* );
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:
bool mUseDateRange;
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;