summaryrefslogtreecommitdiffstats
path: root/languages/cpp/computerecoverypoints.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/computerecoverypoints.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-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 'languages/cpp/computerecoverypoints.h')
-rw-r--r--languages/cpp/computerecoverypoints.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/languages/cpp/computerecoverypoints.h b/languages/cpp/computerecoverypoints.h
index eccd44f6..4e2056d5 100644
--- a/languages/cpp/computerecoverypoints.h
+++ b/languages/cpp/computerecoverypoints.h
@@ -22,20 +22,20 @@
#ifndef __COMPUTERECOVERYPOINTS_H__
#define __COMPUTERECOVERYPOINTS_H__
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "simpletype.h"
#include "simpletypenamespace.h"
#include "tree_parser.h"
-static QString toSimpleName( NameAST* name )
+static TQString toSimpleName( NameAST* name )
{
if ( !name )
- return QString::null;
+ return TQString::null;
- QString s;
- QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
+ TQString s;
+ TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
while ( nameIt.current() )
{
if ( nameIt.current() ->name() )
@@ -55,8 +55,8 @@ static QString toSimpleName( NameAST* name )
struct RecoveryPoint
{
int kind;
- QStringList scope;
- QValueList<QStringList> imports;
+ TQStringList scope;
+ TQValueList<TQStringList> imports;
int startLine, startColumn;
int endLine, endColumn;
@@ -67,15 +67,15 @@ struct RecoveryPoint
{}
///Registers the recovery-points imports into the given namespace
- void registerImports( SimpleType ns, QString hardCodedAliases ) {
+ void registerImports( SimpleType ns, TQString hardCodedAliases ) {
SimpleTypeNamespace* n = dynamic_cast<SimpleTypeNamespace*>( &(*ns) );
if( !n ) {
kdDebug( 9007 ) << "the global namespace was not resolved correctly " << endl;
} else {
///put the imports into the global namespace
- for( QValueList<QStringList>::iterator it = imports.begin(); it != imports.end(); ++it ) {
+ for( TQValueList<TQStringList>::iterator it = imports.begin(); it != imports.end(); ++it ) {
kdDebug( 9007 ) << "inserting import " << *it << " into the global scope" << endl;
- n->addAliasMap( QString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this
+ n->addAliasMap( TQString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this
}
n->addAliases( hardCodedAliases );
}
@@ -91,13 +91,13 @@ private:
class ComputeRecoveryPoints: public TreeParser
{
public:
- ComputeRecoveryPoints( QPtrList<RecoveryPoint>& points )
+ ComputeRecoveryPoints( TQPtrList<RecoveryPoint>& points )
: recoveryPoints( points )
{}
virtual void parseTranslationUnit( const ParsedFile& ast )
{
- QValueList<QStringList> dummy;
+ TQValueList<TQStringList> dummy;
m_imports.push( dummy );
TreeParser::parseTranslationUnit( ast );
@@ -111,7 +111,7 @@ public:
if ( !ast->name() )
return ;
- //QStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope();
+ //TQStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope();
m_imports.top().push_back( ast->name() ->text() );
}
@@ -181,9 +181,9 @@ public:
}
private:
- QPtrList<RecoveryPoint>& recoveryPoints;
- QValueStack< QValueList<QStringList> > m_imports;
- QStringList m_currentScope;
+ TQPtrList<RecoveryPoint>& recoveryPoints;
+ TQValueStack< TQValueList<TQStringList> > m_imports;
+ TQStringList m_currentScope;
};
#endif