summaryrefslogtreecommitdiffstats
path: root/buildtools/lib/parsers/qmake/qmakeast.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /buildtools/lib/parsers/qmake/qmakeast.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/lib/parsers/qmake/qmakeast.cpp')
-rw-r--r--buildtools/lib/parsers/qmake/qmakeast.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/buildtools/lib/parsers/qmake/qmakeast.cpp b/buildtools/lib/parsers/qmake/qmakeast.cpp
index 91e48d2d..c551abef 100644
--- a/buildtools/lib/parsers/qmake/qmakeast.cpp
+++ b/buildtools/lib/parsers/qmake/qmakeast.cpp
@@ -21,34 +21,34 @@
#include <kdebug.h>
-namespace QMake {
+namespace TQMake {
//AST
AST::~AST()
{
- for (TQValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it)
+ for (TQValueList<AST*>::iterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it)
{
AST *node = *it;
delete node;
}
- m_children.clear();
+ m_tqchildren.clear();
}
void AST::addChildAST(AST *node)
{
- m_children.append(node);
+ m_tqchildren.append(node);
}
void AST::removeChildAST(AST *node)
{
- m_children.remove(node);
+ m_tqchildren.remove(node);
}
void AST::writeBack(TQString &buffer)
{
- for (TQValueList<AST*>::const_iterator it = m_children.constBegin();
- it != m_children.constEnd(); ++it)
+ for (TQValueList<AST*>::const_iterator it = m_tqchildren.constBegin();
+ it != m_tqchildren.constEnd(); ++it)
{
if (*it)
{
@@ -70,7 +70,7 @@ TQString AST::indentation()
void ProjectAST::writeBack(TQString &buffer)
{
bool hasActualStatements = false;
- for (TQValueList<QMake::AST*>::const_iterator it = m_children.begin(); it != m_children.end(); ++it)
+ for (TQValueList<TQMake::AST*>::const_iterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it)
{
if ((*it)->nodeType() != AST::IncludeAST)
{
@@ -84,7 +84,7 @@ void ProjectAST::writeBack(TQString &buffer)
if( !buffer.endsWith(": ") )
buffer += indentation();
buffer += scopedID;
- if( m_children.count() == 1 )
+ if( m_tqchildren.count() == 1 )
buffer += " : ";
else
buffer += " {";
@@ -94,9 +94,9 @@ void ProjectAST::writeBack(TQString &buffer)
if( !buffer.endsWith(": ") )
buffer += indentation();
buffer += scopedID + "(" + args + ")";
- if( m_children.count() == 1 && hasActualStatements )
+ if( m_tqchildren.count() == 1 && hasActualStatements )
buffer += ": ";
- else if( (m_children.count() > 0 && hasActualStatements) )
+ else if( (m_tqchildren.count() > 0 && hasActualStatements) )
buffer += "{";
else
buffer += "";
@@ -104,10 +104,10 @@ void ProjectAST::writeBack(TQString &buffer)
else if( !buffer.endsWith(": ") )
buffer += indentation();
AST::writeBack(buffer);
- if (isScope() && m_children.count() > 1 )
+ if (isScope() && m_tqchildren.count() > 1 )
buffer += indentation() + "}";
- if (isFunctionScope() && (hasActualStatements) && m_children.count() > 1)
+ if (isFunctionScope() && (hasActualStatements) && m_tqchildren.count() > 1)
buffer += indentation() + "}";
}
@@ -165,6 +165,6 @@ void IncludeAST::writeBack(TQString &/*buffer*/)
}
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
+// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on