summaryrefslogtreecommitdiffstats
path: root/korganizer/printing/calprintpluginbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/printing/calprintpluginbase.cpp')
-rw-r--r--korganizer/printing/calprintpluginbase.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/korganizer/printing/calprintpluginbase.cpp b/korganizer/printing/calprintpluginbase.cpp
index e16e72c6b..c0e61b922 100644
--- a/korganizer/printing/calprintpluginbase.cpp
+++ b/korganizer/printing/calprintpluginbase.cpp
@@ -46,7 +46,7 @@ inline int round(const double x)
static TQString cleanStr( const TQString &instr )
{
TQString ret = instr;
- return ret.replace( '\n', ' ' );
+ return ret.tqreplace( '\n', ' ' );
}
/******************************************************************
@@ -128,7 +128,7 @@ CalPrintPluginBase::~CalPrintPluginBase()
TQWidget *CalPrintPluginBase::createConfigWidget( TQWidget *w )
{
TQFrame *wdg = new TQFrame( w );
- TQVBoxLayout *layout = new TQVBoxLayout( wdg );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( wdg );
TQLabel *title = new TQLabel( description(), wdg );
TQFont titleFont( title->font() );
@@ -136,13 +136,13 @@ TQWidget *CalPrintPluginBase::createConfigWidget( TQWidget *w )
titleFont.setBold( true );
title->setFont( titleFont );
- layout->addWidget( title );
- layout->addWidget( new TQLabel( info(), wdg ) );
- layout->addSpacing( 20 );
- layout->addWidget( new TQLabel( i18n("This printing style does not "
+ tqlayout->addWidget( title );
+ tqlayout->addWidget( new TQLabel( info(), wdg ) );
+ tqlayout->addSpacing( 20 );
+ tqlayout->addWidget( new TQLabel( i18n("This printing style does not "
"have any configuration options."),
wdg ) );
- layout->addStretch();
+ tqlayout->addStretch();
return wdg;
}
@@ -182,7 +182,7 @@ void CalPrintPluginBase::doLoadConfig()
if ( mConfig ) {
KConfigGroupSaver saver( mConfig, description() );
mConfig->sync();
- TQDateTime currDate( TQDate::currentDate() );
+ TQDateTime currDate( TQDate::tqcurrentDate() );
mFromDate = mConfig->readDateTimeEntry( "FromDate", &currDate ).date();
mToDate = mConfig->readDateTimeEntry( "ToDate" ).date();
mUseColors = mConfig->readBoolEntry( "UseColors", true );
@@ -558,7 +558,7 @@ int CalPrintPluginBase::drawFooter( TQPainter &p, TQRect &footbox )
TQFont oldfont( p.font() );
p.setFont( TQFont( "sans-serif", 6 ) );
TQFontMetrics fm( p.font() );
- TQString dateStr = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), false );
+ TQString dateStr = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), false );
p.drawText( footbox, TQt::AlignCenter | TQt::AlignVCenter | TQt::SingleLine,
i18n( "print date: formatted-datetime", "printed: %1" ).arg( dateStr ) );
p.setFont( oldfont );
@@ -1602,7 +1602,7 @@ void CalPrintPluginBase::drawTodo( int &count, Todo *todo, TQPainter &p,
// The problem is that relations() does not apply filters, so
// we need to compare manually with the complete filtered list!
Todo* subtodo = dynamic_cast<Todo *>( *it );
- if (subtodo && todoList.contains( subtodo ) ) {
+ if (subtodo && todoList.tqcontains( subtodo ) ) {
drawTodo( count, subtodo, p, connectSubTodos, strikeoutCompleted,
desc, posPriority, posSummary, posDueDt, posPercentComplete,
level+1, x, y, width, pageHeight, todoList, &startpt );
@@ -1619,7 +1619,7 @@ void CalPrintPluginBase::drawTodo( int &count, Todo *todo, TQPainter &p,
// The problem is that relations() does not apply filters, so
// we need to compare manually with the complete filtered list!
Todo* subtodo = dynamic_cast<Todo *>( *it );
- if ( subtodo && todoList.contains( subtodo ) ) {
+ if ( subtodo && todoList.tqcontains( subtodo ) ) {
t.append( subtodo );
}
}