diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
commit | 9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch) | |
tree | ab537a329b9613e11dce8195761f93ffe82aed24 /libkmime/kmime_content.cpp | |
parent | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff) | |
download | tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'libkmime/kmime_content.cpp')
-rw-r--r-- | libkmime/kmime_content.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkmime/kmime_content.cpp b/libkmime/kmime_content.cpp index b49ccf4ea..eb8deb8a2 100644 --- a/libkmime/kmime_content.cpp +++ b/libkmime/kmime_content.cpp @@ -22,7 +22,7 @@ #include <klocale.h> #include <kdebug.h> -#include <textcodec.h> +#include <tqtextcodec.h> using namespace KMime; @@ -439,25 +439,25 @@ void Content::decodedText(TQStringList &l, bool trimText, if(!decodeText()) //this is not a text content !! return; - TQString unicode; + TQString tqunicode; bool ok=true; TQTextCodec *codec=KGlobal::charsets()->codecForName(contentType()->charset(),ok); - unicode=codec->toUnicode(b_ody.data(), b_ody.length()); + tqunicode=codec->toUnicode(b_ody.data(), b_ody.length()); if (trimText && removeTrailingNewlines) { int i; - for (i=unicode.length()-1; i>=0; i--) - if (!unicode[i].isSpace()) + for (i=tqunicode.length()-1; i>=0; i--) + if (!tqunicode[i].isSpace()) break; - unicode.truncate(i+1); + tqunicode.truncate(i+1); } else { - if (unicode.right(1)=="\n") - unicode.truncate(unicode.length()-1); // remove trailing new-line + if (tqunicode.right(1)=="\n") + tqunicode.truncate(tqunicode.length()-1); // remove trailing new-line } - l=TQStringList::split('\n', unicode, true); //split the string at linebreaks + l=TQStringList::split('\n', tqunicode, true); //split the string at linebreaks } |