diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/iso5426converter.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/iso5426converter.cpp')
-rw-r--r-- | src/iso5426converter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/iso5426converter.cpp b/src/iso5426converter.cpp index bac132a..14324ab 100644 --- a/src/iso5426converter.cpp +++ b/src/iso5426converter.cpp @@ -24,13 +24,13 @@ #include "iso5426converter.h" #include "tellico_debug.h" -#include <qstring.h> +#include <tqstring.h> using Tellico::Iso5426Converter; -QString Iso5426Converter::toUtf8(const QCString& text_) { +TQString Iso5426Converter::toUtf8(const TQCString& text_) { const uint len = text_.length(); - QString result; + TQString result; result.reserve(len); uint pos = 0; for(uint i = 0; i < len; ++i) { @@ -44,7 +44,7 @@ QString Iso5426Converter::toUtf8(const QCString& text_) { if(c == 0xC9) { c = 0xC8; } - QChar d = getCombiningChar(c * 256 + text_[i + 1]); + TQChar d = getCombiningChar(c * 256 + text_[i + 1]); if(!d.isNull()) { result[pos++] = d; ++i; @@ -75,7 +75,7 @@ bool Iso5426Converter::isCombining(uchar c) { } // Source : http://www.itscj.ipsj.or.jp/ISO-IR/053.pdf -QChar Iso5426Converter::getChar(uchar c) { +TQChar Iso5426Converter::getChar(uchar c) { switch(c) { case 0xA1: return 0x00A1; // 2/1 inverted exclamation mark @@ -190,7 +190,7 @@ QChar Iso5426Converter::getChar(uchar c) { } } -QChar Iso5426Converter::getCombiningChar(uint c) { +TQChar Iso5426Converter::getCombiningChar(uint c) { switch(c) { // 4/0 low rising tone mark case 0xC041: @@ -878,6 +878,6 @@ QChar Iso5426Converter::getCombiningChar(uint c) { default: myDebug() << "Iso5426Converter::getCombiningChar() - no match for " << c << endl; - return QChar(); + return TQChar(); } } |