diff options
Diffstat (limited to 'umbrello/umbrello/codegenerators/rubycodedocumentation.cpp')
-rw-r--r-- | umbrello/umbrello/codegenerators/rubycodedocumentation.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/umbrello/umbrello/codegenerators/rubycodedocumentation.cpp b/umbrello/umbrello/codegenerators/rubycodedocumentation.cpp index 6c69530a..e19f4daa 100644 --- a/umbrello/umbrello/codegenerators/rubycodedocumentation.cpp +++ b/umbrello/umbrello/codegenerators/rubycodedocumentation.cpp @@ -21,7 +21,7 @@ #include "rubycodedocumentation.h" // qt/kde includes -#include <qregexp.h> +#include <tqregexp.h> #include <kdebug.h> // local includes @@ -32,7 +32,7 @@ // Constructors/Destructors // -RubyCodeDocumentation::RubyCodeDocumentation ( RubyClassifierCodeDocument * doc, const QString & text ) +RubyCodeDocumentation::RubyCodeDocumentation ( RubyClassifierCodeDocument * doc, const TQString & text ) : CodeComment ((CodeDocument*) doc, text) { @@ -54,8 +54,8 @@ RubyCodeDocumentation::~RubyCodeDocumentation ( ) { } /** * Save the XMI representation of this object */ -void RubyCodeDocumentation::saveToXMI ( QDomDocument & doc, QDomElement & root ) { - QDomElement blockElement = doc.createElement( "rubycodedocumentation" ); +void RubyCodeDocumentation::saveToXMI ( TQDomDocument & doc, TQDomElement & root ) { + TQDomElement blockElement = doc.createElement( "rubycodedocumentation" ); setAttributesOnNode(doc, blockElement); // as we added no additional fields to this class we may // just use parent TextBlock method root.appendChild( blockElement ); @@ -64,10 +64,10 @@ void RubyCodeDocumentation::saveToXMI ( QDomDocument & doc, QDomElement & root ) /** * @return QString */ -QString RubyCodeDocumentation::toString ( ) +TQString RubyCodeDocumentation::toString ( ) { - QString output = ""; + TQString output = ""; // simple output method if(getWriteOutText()) @@ -79,9 +79,9 @@ QString RubyCodeDocumentation::toString ( ) if(p->getCommentStyle() == CodeGenerationPolicy::MultiLine) useHashOutput = false; - QString indent = getIndentationString(); - QString endLine = getNewLineEndingChars(); - QString body = getText(); + TQString indent = getIndentationString(); + TQString endLine = getNewLineEndingChars(); + TQString body = getText(); if( useHashOutput) { if(!body.isEmpty()) @@ -96,7 +96,7 @@ QString RubyCodeDocumentation::toString ( ) return output; } -QString RubyCodeDocumentation::getNewEditorLine ( int amount ) +TQString RubyCodeDocumentation::getNewEditorLine ( int amount ) { CodeGenerationPolicy *p = UMLApp::app()->getCommonPolicy(); if(p->getCommentStyle() == CodeGenerationPolicy::MultiLine) @@ -124,19 +124,19 @@ int RubyCodeDocumentation::lastEditableLine() { /** UnFormat a long text string. Typically, this means removing * the indentaion (linePrefix) and/or newline chars from each line. */ -QString RubyCodeDocumentation::unformatText ( const QString & text , const QString & indent) +TQString RubyCodeDocumentation::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("^=begin\\s*(rdoc)?\\s*\n?")); - mytext.remove(QRegExp("^=end\\s*\n?$")); + mytext.remove(TQRegExp("^=begin\\s*(rdoc)?\\s*\n?")); + mytext.remove(TQRegExp("^=end\\s*\n?$")); } else - mytext.remove(QRegExp("^#\\s*")); + mytext.remove(TQRegExp("^#\\s*")); return mytext; } |