diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /buildtools/lib/parsers/autotools/autotoolsast.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/lib/parsers/autotools/autotoolsast.cpp')
-rw-r--r-- | buildtools/lib/parsers/autotools/autotoolsast.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/buildtools/lib/parsers/autotools/autotoolsast.cpp b/buildtools/lib/parsers/autotools/autotoolsast.cpp index 757f4699..ddcbddc3 100644 --- a/buildtools/lib/parsers/autotools/autotoolsast.cpp +++ b/buildtools/lib/parsers/autotools/autotoolsast.cpp @@ -28,7 +28,7 @@ namespace AutoTools { AST::~AST() { - for (QValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it) + for (TQValueList<AST*>::iterator it = m_children.begin(); it != m_children.end(); ++it) { AST *node = *it; delete node; @@ -40,9 +40,9 @@ void AST::addChildAST(AST *node) m_children.append(node); } -void AST::writeBack(QString &buffer) +void AST::writeBack(TQString &buffer) { - for (QValueList<AST*>::const_iterator it = m_children.constBegin(); + for (TQValueList<AST*>::const_iterator it = m_children.constBegin(); it != m_children.constEnd(); ++it) { if (*it) @@ -50,9 +50,9 @@ void AST::writeBack(QString &buffer) } } -QString AST::indentation() +TQString AST::indentation() { - QString result; + TQString result; for (int i = 0; i < depth(); i++) result += '\t'; return result; @@ -63,14 +63,14 @@ bool AST::hasChildren() const return !m_children.isEmpty(); } -QValueList<AST*> AST::children() const +TQValueList<AST*> AST::children() const { return m_children; } //ProjectAST -void ProjectAST::writeBack(QString &buffer) +void ProjectAST::writeBack(TQString &buffer) { if ( isRule() ) buffer += scopedID; @@ -87,27 +87,27 @@ void ProjectAST::addChildAST(AST *node) AST::addChildAST(node); } -void AssignmentAST::writeBack(QString &buffer) +void AssignmentAST::writeBack(TQString &buffer) { buffer += indentation() + scopedID + " " + op + values.join(""); } -void AutomakeTargetAST::writeBack( QString& buffer ) +void AutomakeTargetAST::writeBack( TQString& buffer ) { buffer += target + ":" + deps.join(""); } -void ConditionAST::writeBack( QString& buffer ) +void ConditionAST::writeBack( TQString& buffer ) { buffer += indentation() + type + " " + conditionName; } -void NewLineAST::writeBack(QString &buffer) +void NewLineAST::writeBack(TQString &buffer) { buffer += "\n"; } -void CommentAST::writeBack(QString &buffer) +void CommentAST::writeBack(TQString &buffer) { buffer += indentation() + comment; } |