diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/plugins/printing/journal | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/plugins/printing/journal')
-rw-r--r-- | korganizer/plugins/printing/journal/journalprint.cpp | 12 | ||||
-rw-r--r-- | korganizer/plugins/printing/journal/journalprint.h | 10 |
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; |