summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/rubycodecomment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/rubycodecomment.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/rubycodecomment.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/umbrello/umbrello/codegenerators/rubycodecomment.cpp b/umbrello/umbrello/codegenerators/rubycodecomment.cpp
index 46374128..89508b63 100644
--- a/umbrello/umbrello/codegenerators/rubycodecomment.cpp
+++ b/umbrello/umbrello/codegenerators/rubycodecomment.cpp
@@ -18,12 +18,12 @@
***************************************************************************/
#include "rubycodecomment.h"
-#include <qregexp.h>
+#include <tqregexp.h>
// Constructors/Destructors
//
-RubyCodeComment::RubyCodeComment(CodeDocument * doc, const QString & text)
+RubyCodeComment::RubyCodeComment(CodeDocument * doc, const TQString & text)
: CodeComment(doc, text)
{
@@ -46,35 +46,35 @@ RubyCodeComment::~RubyCodeComment( ) { }
// Other methods
//
-QString RubyCodeComment::getNewEditorLine( int amount ) {
- QString line = getIndentationString(amount) + "# ";
+TQString RubyCodeComment::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 RubyCodeComment::unformatText(const QString & text, const QString & indent)
+TQString RubyCodeComment::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 hash
- mytext.remove(QRegExp("^#\\s*"));
+ mytext.remove(TQRegExp("^#\\s*"));
return mytext;
}
/**
* @return QString
*/
-QString RubyCodeComment::toString( )
+TQString RubyCodeComment::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 + endLine));
}