summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/cppcodecomment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/codegenerators/cppcodecomment.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/cppcodecomment.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/umbrello/umbrello/codegenerators/cppcodecomment.cpp b/umbrello/umbrello/codegenerators/cppcodecomment.cpp
index 8d480e93..d0e386c0 100644
--- a/umbrello/umbrello/codegenerators/cppcodecomment.cpp
+++ b/umbrello/umbrello/codegenerators/cppcodecomment.cpp
@@ -19,12 +19,12 @@
#include "cppcodecomment.h"
// qt/kde includes
-#include <qregexp.h>
+#include <tqregexp.h>
// Constructors/Destructors
//
-CPPCodeComment::CPPCodeComment ( CodeDocument * doc, const QString & text )
+CPPCodeComment::CPPCodeComment ( CodeDocument * doc, const TQString & text )
: CodeComment (doc, text)
{
@@ -50,8 +50,8 @@ CPPCodeComment::~CPPCodeComment ( ) { }
/**
* Save the XMI representation of this object
*/
-void CPPCodeComment::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
- QDomElement blockElement = doc.createElement( "cppcodecomment" );
+void CPPCodeComment::saveToXMI ( TQDomDocument & doc, TQDomElement & root ) {
+ TQDomElement blockElement = doc.createElement( "cppcodecomment" );
setAttributesOnNode(doc, blockElement); // as we added no additional fields to this class we may
// just use parent TextBlock method
root.appendChild( blockElement );
@@ -60,38 +60,38 @@ void CPPCodeComment::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
/**
* @return QString
*/
-QString CPPCodeComment::toString ( )
+TQString CPPCodeComment::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()+endLine, indent +"// ", endLine));
}
return output;
}
-QString CPPCodeComment::getNewEditorLine ( int amount ) {
- QString line = getIndentationString(amount) + "// ";
+TQString CPPCodeComment::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 CPPCodeComment::unformatText ( const QString & text , const QString & indent)
+TQString CPPCodeComment::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;
}