From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/cppsupport_utils.cpp | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'languages/cpp/cppsupport_utils.cpp') diff --git a/languages/cpp/cppsupport_utils.cpp b/languages/cpp/cppsupport_utils.cpp index e6f80abc..338fa724 100644 --- a/languages/cpp/cppsupport_utils.cpp +++ b/languages/cpp/cppsupport_utils.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -8,26 +8,26 @@ #include "cppsupport_utils.h" -static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model ); -static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns ); -static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass ); +static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model ); +static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns ); +static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass ); -QStringList typeNameList( const CodeModel* model ) +TQStringList typeNameList( const CodeModel* model ) { - QStringList lst; - QStringList path; + TQStringList lst; + TQStringList path; typeNameList( path, lst, model ); return lst; } -static void typeNameList( QStringList& path, QStringList & lst, const CodeModel * model ) +static void typeNameList( TQStringList& path, TQStringList & lst, const CodeModel * model ) { const FileList fileList = model->fileList(); for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ) typeNameList( path, lst, model_cast(*it) ); } -static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns ) +static void typeNameList( TQStringList& path, TQStringList & lst, NamespaceDom ns ) { if( !ns->isFile() ) path.push_back( ns->name() ); @@ -44,7 +44,7 @@ static void typeNameList( QStringList& path, QStringList & lst, NamespaceDom ns path.pop_back(); } -static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass ) +static void typeNameList( TQStringList & path, TQStringList & lst, ClassDom klass ) { path.push_back( klass->name() ); @@ -57,13 +57,13 @@ static void typeNameList( QStringList & path, QStringList & lst, ClassDom klass path.pop_back(); } -static void typedefMap( QMap & map, const CodeModel * model ); -static void typedefMap( QMap & map, NamespaceDom ns ); -static void typedefMap( QMap & map, ClassDom klass ); +static void typedefMap( TQMap & map, const CodeModel * model ); +static void typedefMap( TQMap & map, NamespaceDom ns ); +static void typedefMap( TQMap & map, ClassDom klass ); -QMap typedefMap( const CodeModel* model ) +TQMap typedefMap( const CodeModel* model ) { - QMap map; + TQMap map; typedefMap( map, model ); /*We need to flatten the typedefs to avoid circular aliases. @@ -72,7 +72,7 @@ QMap typedefMap( const CodeModel* model ) map["Bar"] = "Foo"; map["Baz"] = "Bar";*/ - QMap::iterator it = map.begin(); + TQMap::iterator it = map.begin(); for ( ; it != map.end(); ++it ) { while ( map.contains( map[ it.key() ] ) && @@ -85,14 +85,14 @@ QMap typedefMap( const CodeModel* model ) return map; } -static void typedefMap( QMap & map, const CodeModel * model ) +static void typedefMap( TQMap & map, const CodeModel * model ) { const FileList fileList = model->fileList(); for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ) typedefMap( map, model_cast(*it) ); } -static void typedefMap( QMap & map, NamespaceDom ns ) +static void typedefMap( TQMap & map, NamespaceDom ns ) { const TypeAliasList aliasList = ns->typeAliasList(); for( TypeAliasList::ConstIterator it=aliasList.begin(); it!=aliasList.end(); ++it ) @@ -107,7 +107,7 @@ static void typedefMap( QMap & map, NamespaceDom ns ) typedefMap( map, *it ); } -static void typedefMap( QMap & map, ClassDom klass ) +static void typedefMap( TQMap & map, ClassDom klass ) { const TypeAliasList aliasList = klass->typeAliasList(); for( TypeAliasList::ConstIterator it=aliasList.begin(); it!=aliasList.end(); ++it ) @@ -118,7 +118,7 @@ static void typedefMap( QMap & map, ClassDom klass ) typedefMap( map, *it ); } -QString formattedOpeningParenthesis(bool suppressSpace) +TQString formattedOpeningParenthesis(bool suppressSpace) { KConfig * config = kapp->config(); config->setGroup("AStyle"); @@ -127,7 +127,7 @@ QString formattedOpeningParenthesis(bool suppressSpace) return "( "; } -QString formattedClosingParenthesis(bool suppressSpace) +TQString formattedClosingParenthesis(bool suppressSpace) { KConfig * config = kapp->config(); config->setGroup("AStyle"); -- cgit v1.2.3