diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kidna.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kidna.cpp')
-rw-r--r-- | kdecore/kidna.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdecore/kidna.cpp b/kdecore/kidna.cpp index f3289b26c..c7e1ccdb5 100644 --- a/kdecore/kidna.cpp +++ b/kdecore/kidna.cpp @@ -30,34 +30,34 @@ using namespace KNetwork; #endif -QCString KIDNA::toAsciiCString(const QString &idna) +TQCString KIDNA::toAsciiCString(const TQString &idna) { #ifndef Q_WS_WIN //TODO kresolver not ported return KResolver::domainToAscii(idna); #else - return QCString(); + return TQCString(); #endif } -QString KIDNA::toAscii(const QString &idna) +TQString KIDNA::toAscii(const TQString &idna) { if (idna.length() && (idna[0] == ".")) { - QString host = QString::fromLatin1(toAsciiCString(idna.mid(1))); + TQString host = TQString::fromLatin1(toAsciiCString(idna.mid(1))); if (host.isEmpty()) - return QString::null; // Error + return TQString::null; // Error return idna[0] + host; } - return QString::fromLatin1(toAsciiCString(idna)); + return TQString::fromLatin1(toAsciiCString(idna)); } -QString KIDNA::toUnicode(const QString &idna) +TQString KIDNA::toUnicode(const TQString &idna) { #ifndef Q_WS_WIN //TODO kresolver not ported if (idna.length() && (idna[0] == ".")) return idna[0] + KResolver::domainToUnicode(idna.mid(1)); return KResolver::domainToUnicode(idna); #else - return QString::null; + return TQString::null; #endif } |