summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/javacodecomment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/javacodecomment.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/javacodecomment.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/umbrello/umbrello/codegenerators/javacodecomment.cpp b/umbrello/umbrello/codegenerators/javacodecomment.cpp
index bec0e87b..588a0acc 100644
--- a/umbrello/umbrello/codegenerators/javacodecomment.cpp
+++ b/umbrello/umbrello/codegenerators/javacodecomment.cpp
@@ -14,12 +14,12 @@
*/
#include "javacodecomment.h"
-#include <qregexp.h>
+#include <tqregexp.h>
// Constructors/Destructors
//
-JavaCodeComment::JavaCodeComment ( CodeDocument * doc, const QString & text )
+JavaCodeComment::JavaCodeComment ( CodeDocument * doc, const TQString & text )
: CodeComment (doc, text)
{
@@ -42,38 +42,38 @@ JavaCodeComment::~JavaCodeComment ( ) { }
// Other methods
//
-QString JavaCodeComment::getNewEditorLine ( int amount ) {
- QString line = getIndentationString(amount) + "// ";
+TQString JavaCodeComment::getNewEditorLine ( int amount ) {
+ TQString line = getIndentationString(amount) + "// ";
return line;
}
/** UnFormat a long text string. Typically, this means removing
* the indentaion (linePrefix) and/or newline chars from each line.
*/
-QString JavaCodeComment::unformatText ( const QString & text , const QString & indent)
+TQString JavaCodeComment::unformatText ( const TQString & text , const TQString & indent)
{
// remove leading or trailing comment stuff
- QString mytext = TextBlock::unformatText(text, indent);
+ TQString mytext = TextBlock::unformatText(text, indent);
// now leading slashes
- mytext.remove(QRegExp("^\\/\\/\\s*"));
+ mytext.remove(TQRegExp("^\\/\\/\\s*"));
return mytext;
}
/**
* @return QString
*/
-QString JavaCodeComment::toString ( )
+TQString JavaCodeComment::toString ( )
{
- QString output = "";
+ TQString output = "";
// simple output method
if(getWriteOutText())
{
- QString indent = getIndentationString();
- QString endLine = getNewLineEndingChars();
+ TQString indent = getIndentationString();
+ TQString endLine = getNewLineEndingChars();
output.append(formatMultiLineText (getText(), indent +"// ", endLine));
}