summaryrefslogtreecommitdiffstats
path: root/kmail/templateparser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /kmail/templateparser.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/templateparser.cpp')
-rw-r--r--kmail/templateparser.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmail/templateparser.cpp b/kmail/templateparser.cpp
index d497f1846..8e167f5fd 100644
--- a/kmail/templateparser.cpp
+++ b/kmail/templateparser.cpp
@@ -261,7 +261,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
} else if ( mDebug ) {
KMessageBox::error( 0,
i18n( "Cannot insert content from file %1: %2" ).
- arg( path ).arg( file.errorString() ) );
+ tqarg( path ).tqarg( file.errorString() ) );
}
} else if ( cmd.startsWith( "SYSTEM=" ) ) {
@@ -294,7 +294,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
} else if ( mDebug ) {
KMessageBox::error( 0,
i18n( "Cannot insert content from file %1: %2").
- arg( path ).arg(file.errorString() ));
+ tqarg( path ).tqarg(file.errorString() ));
}
} else if ( cmd.startsWith( "TQUOTEPIPE=" ) ) {
@@ -396,7 +396,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
kdDebug() << "Command: OTEXTSIZE" << endl;
i += strlen( "OTEXTSIZE" );
if ( mOrigMsg ) {
- TQString str = TQString( "%1" ).arg( mOrigMsg->body().length() );
+ TQString str = TQString( "%1" ).tqarg( mOrigMsg->body().length() );
body.append( str );
}
@@ -967,7 +967,7 @@ void TemplateParser::addProcessedBodyToMessage( const TQString &body )
DwParameter *nameParameter = new DwParameter;
nameParameter->SetAttribute( "name" );
nameParameter->SetValue( Util::dwString( KMMsgBase::encodeRFC2231StringAutoDetectCharset(
- i18n( "Attachment %1" ).arg( attachmentNumber ) ) ) );
+ i18n( "Attachment %1" ).tqarg( attachmentNumber ) ) ) );
ct.AddParameter( nameParameter );
}
}
@@ -1059,7 +1059,7 @@ TQString TemplateParser::findTemplate()
TQString iid;
if ( mIdentity ) {
- iid = TQString("IDENTITY_%1").arg( mIdentity ); // templates ID for that identity
+ iid = TQString("IDENTITY_%1").tqarg( mIdentity ); // templates ID for that identity
}
else {
iid = "IDENTITY_NO_IDENTITY"; // templates ID for no identity
@@ -1148,11 +1148,11 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
if ( mPipeErr.isEmpty() ) {
KMessageBox::error( 0,
i18n( "Pipe command exit with status %1: %2").
- arg( mPipeRc ).arg( cmd ) );
+ tqarg( mPipeRc ).tqarg( cmd ) );
} else {
KMessageBox::detailedError( 0,
i18n( "Pipe command exit with status %1: %2" ).
- arg( mPipeRc ).arg( cmd ), mPipeErr );
+ tqarg( mPipeRc ).tqarg( cmd ), mPipeErr );
}
}
@@ -1163,11 +1163,11 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
if ( mPipeErr.isEmpty() ) {
KMessageBox::error( 0,
i18n( "Pipe command killed by signal %1: %2" ).
- arg( -(mPipeRc) ).arg( cmd ) );
+ tqarg( -(mPipeRc) ).tqarg( cmd ) );
} else {
KMessageBox::detailedError( 0,
i18n( "Pipe command killed by signal %1: %2" ).
- arg( -(mPipeRc) ).arg( cmd ), mPipeErr );
+ tqarg( -(mPipeRc) ).tqarg( cmd ), mPipeErr );
}
}
}
@@ -1179,7 +1179,7 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
if ( mDebug ) {
KMessageBox::error( 0,
i18n( "Pipe command did not finish within %1 seconds: %2" ).
- arg( PipeTimeout ).arg( cmd ) );
+ tqarg( PipeTimeout ).tqarg( cmd ) );
}
}
@@ -1190,11 +1190,11 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
if ( mDebug ) {
if ( mPipeErr.isEmpty() ) {
KMessageBox::error( 0,
- i18n( "Cannot write to process stdin: %1" ).arg( cmd ) );
+ i18n( "Cannot write to process stdin: %1" ).tqarg( cmd ) );
} else {
KMessageBox::detailedError( 0,
i18n( "Cannot write to process stdin: %1" ).
- arg( cmd ), mPipeErr );
+ tqarg( cmd ), mPipeErr );
}
}
}
@@ -1202,7 +1202,7 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
} else if ( mDebug ) {
KMessageBox::error( 0,
i18n( "Cannot start pipe command from template: %1" ).
- arg( cmd ) );
+ tqarg( cmd ) );
}
return mPipeOut;