diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/codegenerators/javacodeoperation.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/codegenerators/javacodeoperation.cpp')
-rw-r--r-- | umbrello/umbrello/codegenerators/javacodeoperation.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/umbrello/umbrello/codegenerators/javacodeoperation.cpp b/umbrello/umbrello/codegenerators/javacodeoperation.cpp index 84ce0331..c7e7d162 100644 --- a/umbrello/umbrello/codegenerators/javacodeoperation.cpp +++ b/umbrello/umbrello/codegenerators/javacodeoperation.cpp @@ -25,7 +25,7 @@ // JavaCodeOperation::JavaCodeOperation - ( JavaClassifierCodeDocument * doc, UMLOperation *parent, const QString & body, const QString & comment ) + ( JavaClassifierCodeDocument * doc, UMLOperation *parent, const TQString & body, const TQString & comment ) : CodeOperation (doc, parent, body, comment) { // lets not go with the default comment and instead use @@ -52,15 +52,15 @@ void JavaCodeOperation::updateMethodDeclaration() JavaClassifierCodeDocument * javadoc = dynamic_cast<JavaClassifierCodeDocument*>(doc); UMLOperation * o = getParentOperation(); bool isInterface = javadoc->getParentClassifier()->isInterface(); - QString endLine = getNewLineEndingChars(); + TQString endLine = getNewLineEndingChars(); // now, the starting text. - QString strVis = javadoc->scopeToJavaDecl(o->getVisibility()); + TQString strVis = javadoc->scopeToJavaDecl(o->getVisibility()); // no return type for constructors - QString fixedReturn = JavaCodeGenerator::fixTypeName(o->getTypeName()); - QString returnType = o->isConstructorOperation() ? QString("") : (fixedReturn + QString(" ")); - QString methodName = o->getName(); - QString paramStr = QString(""); + TQString fixedReturn = JavaCodeGenerator::fixTypeName(o->getTypeName()); + TQString returnType = o->isConstructorOperation() ? TQString("") : (fixedReturn + TQString(" ")); + TQString methodName = o->getName(); + TQString paramStr = TQString(""); // assemble parameters UMLAttributeList list = getParentOperation()->getParmList(); @@ -68,18 +68,18 @@ void JavaCodeOperation::updateMethodDeclaration() int paramNum = 0; for(UMLAttribute* parm = list.first(); parm; parm=list.next()) { - QString rType = parm->getTypeName(); - QString paramName = parm->getName(); + TQString rType = parm->getTypeName(); + TQString paramName = parm->getName(); paramStr += rType + ' ' + paramName; paramNum++; if (paramNum != nrofParam ) paramStr += ", "; } - QString maybeStatic; + TQString maybeStatic; if (o->getStatic()) maybeStatic = "static "; - QString startText = strVis + ' ' + maybeStatic + returnType + methodName + " (" + paramStr + ')'; + TQString startText = strVis + ' ' + maybeStatic + returnType + methodName + " (" + paramStr + ')'; // IF the parent is an interface, our operations look different // e.g. they have no body @@ -95,7 +95,7 @@ void JavaCodeOperation::updateMethodDeclaration() // Lastly, for text content generation, we fix the comment on the // operation, IF the codeop is autogenerated & currently empty - QString comment = o->getDoc(); + TQString comment = o->getDoc(); if(comment.isEmpty() && getContentType() == CodeBlock::AutoGenerated) { UMLAttributeList parameters = o->getParmList(); |