summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/printing/journal
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/printing/journal')
-rw-r--r--korganizer/plugins/printing/journal/journalprint.cpp12
-rw-r--r--korganizer/plugins/printing/journal/journalprint.h10
2 files changed, 11 insertions, 11 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;