summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/javacodedocumentation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/javacodedocumentation.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/javacodedocumentation.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/umbrello/umbrello/codegenerators/javacodedocumentation.cpp b/umbrello/umbrello/codegenerators/javacodedocumentation.cpp
index e831d885..662b88c9 100644
--- a/umbrello/umbrello/codegenerators/javacodedocumentation.cpp
+++ b/umbrello/umbrello/codegenerators/javacodedocumentation.cpp
@@ -18,7 +18,7 @@
#include "javacodedocumentation.h"
// qt/kde includes
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kdebug.h>
// local includes
@@ -29,7 +29,7 @@
// Constructors/Destructors
//
-JavaCodeDocumentation::JavaCodeDocumentation ( JavaClassifierCodeDocument * doc, const QString & text )
+JavaCodeDocumentation::JavaCodeDocumentation ( JavaClassifierCodeDocument * doc, const TQString & text )
: CodeComment(doc, text)
{
@@ -51,8 +51,8 @@ JavaCodeDocumentation::~JavaCodeDocumentation ( ) { }
/**
* Save the XMI representation of this object
*/
-void JavaCodeDocumentation::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
- QDomElement blockElement = doc.createElement( "javacodedocumentation" );
+void JavaCodeDocumentation::saveToXMI ( TQDomDocument & doc, TQDomElement & root ) {
+ TQDomElement blockElement = doc.createElement( "javacodedocumentation" );
setAttributesOnNode(doc, blockElement); // as we added no additional fields to this class we may
// just use parent TextBlock method
root.appendChild( blockElement );
@@ -61,10 +61,10 @@ void JavaCodeDocumentation::saveToXMI ( QDomDocument & doc, QDomElement & root )
/**
* @return QString
*/
-QString JavaCodeDocumentation::toString ( )
+TQString JavaCodeDocumentation::toString ( )
{
- QString output = "";
+ TQString output = "";
// simple output method
if(getWriteOutText())
@@ -76,9 +76,9 @@ QString JavaCodeDocumentation::toString ( )
if(p->getCommentStyle() == CodeGenerationPolicy::MultiLine)
useDoubleDashOutput = false;
- QString indent = getIndentationString();
- QString endLine = getNewLineEndingChars();
- QString body = getText();
+ TQString indent = getIndentationString();
+ TQString endLine = getNewLineEndingChars();
+ TQString body = getText();
if(useDoubleDashOutput)
{
if(!body.isEmpty())
@@ -93,7 +93,7 @@ QString JavaCodeDocumentation::toString ( )
return output;
}
-QString JavaCodeDocumentation::getNewEditorLine ( int amount )
+TQString JavaCodeDocumentation::getNewEditorLine ( int amount )
{
CodeGenerationPolicy *p = UMLApp::app()->getCommonPolicy();
if(p->getCommentStyle() == CodeGenerationPolicy::MultiLine)
@@ -121,20 +121,20 @@ int JavaCodeDocumentation::lastEditableLine() {
/** UnFormat a long text string. Typically, this means removing
* the indentaion (linePrefix) and/or newline chars from each line.
*/
-QString JavaCodeDocumentation::unformatText ( const QString & text , const QString & indent)
+TQString JavaCodeDocumentation::unformatText ( const TQString & text , const TQString & indent)
{
- QString mytext = TextBlock::unformatText(text, indent);
+ TQString mytext = TextBlock::unformatText(text, indent);
CodeGenerationPolicy *p = UMLApp::app()->getCommonPolicy();
// remove leading or trailing comment stuff
- mytext.remove(QRegExp('^'+indent));
+ mytext.remove(TQRegExp('^'+indent));
if(p->getCommentStyle() == CodeGenerationPolicy::MultiLine)
{
- mytext.remove(QRegExp("^\\/\\*\\*\\s*\n?"));
- mytext.remove(QRegExp("\\s*\\*\\/\\s*\n?$"));
- mytext.remove(QRegExp("^\\s*\\*\\s*"));
+ mytext.remove(TQRegExp("^\\/\\*\\*\\s*\n?"));
+ mytext.remove(TQRegExp("\\s*\\*\\/\\s*\n?$"));
+ mytext.remove(TQRegExp("^\\s*\\*\\s*"));
} else
- mytext.remove(QRegExp("^\\/\\/\\s*"));
+ mytext.remove(TQRegExp("^\\/\\/\\s*"));
return mytext;
}