summaryrefslogtreecommitdiffstats
path: root/korn/mailsubject.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korn/mailsubject.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/mailsubject.cpp')
-rw-r--r--korn/mailsubject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/korn/mailsubject.cpp b/korn/mailsubject.cpp
index d431f4402..b71205b14 100644
--- a/korn/mailsubject.cpp
+++ b/korn/mailsubject.cpp
@@ -54,20 +54,20 @@ TQString KornMailSubject::toString() const
date.setTime_t(_date);
return TQString("KornMailSubject, Id: ") + (_id?_id->toString():TQString("NULL")) + ", " + i18n("Subject:") + " " + _subject
+ ", " + i18n("Sender:") + " " + _sender + ", " + i18n("Size:") + " " + TQString::number(_size)
- + ", " + i18n("Date:") + " " + date.toString(Qt::ISODate);
+ + ", " + i18n("Date:") + " " + date.toString(TQt::ISODate);
}
TQString KornMailSubject::decodeRFC2047String(const TQCString& aStr)
{
if ( aStr.isEmpty() )
- return TQString::null;
+ return TQString();
const TQCString str = unfold( aStr );
if ( str.isEmpty() )
- return TQString::null;
+ return TQString();
- if ( str.find( "=?" ) < 0 ) {
+ if ( str.tqfind( "=?" ) < 0 ) {
// No need to decode
return TQString(str);
}
@@ -128,7 +128,7 @@ TQString KornMailSubject::decodeRFC2047String(const TQCString& aStr)
in.resetRawData( enc_start, pos - enc_start );
const TQTextCodec * codec = codecForName(charset);
- if (!codec) return TQString::null;
+ if (!codec) return TQString();
result += codec->toUnicode(enc);
lastWasEncodedWord = true;