From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/kde/mcop-dcop/kmcop.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'arts/kde/mcop-dcop/kmcop.cpp') diff --git a/arts/kde/mcop-dcop/kmcop.cpp b/arts/kde/mcop-dcop/kmcop.cpp index 22e19dc9d..1eb14f0f3 100644 --- a/arts/kde/mcop-dcop/kmcop.cpp +++ b/arts/kde/mcop-dcop/kmcop.cpp @@ -23,8 +23,8 @@ #include #include -#include -#include +#include +#include #include #include @@ -43,7 +43,7 @@ class KMCOPPrivate { public: MCOPInfo mcopInfo; - QPtrList list; + TQPtrList list; }; int main(int argc, char **argv) @@ -74,7 +74,7 @@ int main(int argc, char **argv) return app.exec(); } -KMCOP::KMCOP() : QObject(), DCOPObject("arts") +KMCOP::KMCOP() : TQObject(), DCOPObject("arts") { d = new KMCOPPrivate(); d->mcopInfo = Reference("global:Arts_MCOPInfo"); @@ -91,10 +91,10 @@ int KMCOP::objectCount() return d->mcopInfo.objectCount(); } -QCString KMCOP::correctType(const QCString &str) +TQCString KMCOP::correctType(const TQCString &str) { if(str == "string") - return "QCString"; + return "TQCString"; return str; } @@ -106,7 +106,7 @@ void KMCOP::addInterfacesHackHackHack() if(!obj.isNull()) { - QCString interfaceName = obj._interfaceName().c_str(); + TQCString interfaceName = obj._interfaceName().c_str(); if(interfaceName != "Arts::TraderOffer") { @@ -121,21 +121,21 @@ void KMCOP::addInterfacesHackHackHack() vector::iterator ifaceMethodsIterator; for(ifaceMethodsIterator = ifaceMethods.begin(); ifaceMethodsIterator != ifaceMethods.end(); ifaceMethodsIterator++) { - QCString function, signature; + TQCString function, signature; MCOPEntryInfo *entry = new MCOPEntryInfo(); MethodDef currentMethod = *ifaceMethodsIterator; vector currentParameters = currentMethod.signature; - QCString newType = correctType(QCString(currentMethod.type.c_str())); + TQCString newType = correctType(TQCString(currentMethod.type.c_str())); entry->setFunctionType(newType); - entry->setFunctionName(QCString(currentMethod.name.c_str())); + entry->setFunctionName(TQCString(currentMethod.name.c_str())); - function = entry->functionType() + QCString(" ") + entry->functionName() + QCString("("); + function = entry->functionType() + TQCString(" ") + entry->functionName() + TQCString("("); - signature = QCString("("); + signature = TQCString("("); QCStringList signatureList; @@ -145,20 +145,20 @@ void KMCOP::addInterfacesHackHackHack() ParamDef parameter = *methodParametersIterator; if(methodParametersIterator != currentParameters.begin()) { - function += QCString(", "); - signature += QCString(","); + function += TQCString(", "); + signature += TQCString(","); } - QCString correctParameter = correctType(QCString(parameter.type.c_str())); + TQCString correctParameter = correctType(TQCString(parameter.type.c_str())); function += correctParameter; signature += correctParameter; - signatureList.append(QCString(parameter.type.c_str())); + signatureList.append(TQCString(parameter.type.c_str())); } - function += QCString(")"); - signature += QCString(")"); + function += TQCString(")"); + signature += TQCString(")"); entry->setSignature(signature); entry->setSignatureList(signatureList); -- cgit v1.2.1