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 /dnssd/responder.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 'dnssd/responder.cpp')
-rw-r--r-- | dnssd/responder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dnssd/responder.cpp b/dnssd/responder.cpp index d92d30261..d85358429 100644 --- a/dnssd/responder.cpp +++ b/dnssd/responder.cpp @@ -19,8 +19,8 @@ */ #include "responder.h" -#include <qapplication.h> -#include <qeventloop.h> +#include <tqapplication.h> +#include <tqeventloop.h> #include <kstaticdeleter.h> #include <kidna.h> #include <kdebug.h> @@ -72,7 +72,7 @@ Responder& Responder::self() void Responder::process() { - qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); + qApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); } #ifdef HAVE_DNSSD @@ -86,20 +86,20 @@ AvahiClientState Responder::state() const } #endif -bool domainIsLocal(const QString& domain) +bool domainIsLocal(const TQString& domain) { return domain.section('.',-1,-1).lower()=="local"; } -QCString domainToDNS(const QString &domain) +TQCString domainToDNS(const TQString &domain) { if (domainIsLocal(domain)) return domain.utf8(); else return KIDNA::toAsciiCString(domain); } -QString DNSToDomain(const char* domain) +TQString DNSToDomain(const char* domain) { - if (domainIsLocal(domain)) return QString::fromUtf8(domain); + if (domainIsLocal(domain)) return TQString::fromUtf8(domain); else return KIDNA::toUnicode(domain); } |