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 /languages/cpp/cppsupport_utils.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 'languages/cpp/cppsupport_utils.cpp')
-rw-r--r-- | languages/cpp/cppsupport_utils.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
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 <qdir.h> +#include <tqdir.h> #include <kapplication.h> #include <kconfig.h> @@ -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<NamespaceDom>(*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<QString, QString> & map, const CodeModel * model ); -static void typedefMap( QMap<QString, QString> & map, NamespaceDom ns ); -static void typedefMap( QMap<QString, QString> & map, ClassDom klass ); +static void typedefMap( TQMap<TQString, TQString> & map, const CodeModel * model ); +static void typedefMap( TQMap<TQString, TQString> & map, NamespaceDom ns ); +static void typedefMap( TQMap<TQString, TQString> & map, ClassDom klass ); -QMap<QString, QString> typedefMap( const CodeModel* model ) +TQMap<TQString, TQString> typedefMap( const CodeModel* model ) { - QMap<QString, QString> map; + TQMap<TQString, TQString> map; typedefMap( map, model ); /*We need to flatten the typedefs to avoid circular aliases. @@ -72,7 +72,7 @@ QMap<QString, QString> typedefMap( const CodeModel* model ) map["Bar"] = "Foo"; map["Baz"] = "Bar";*/ - QMap<QString, QString>::iterator it = map.begin(); + TQMap<TQString, TQString>::iterator it = map.begin(); for ( ; it != map.end(); ++it ) { while ( map.contains( map[ it.key() ] ) && @@ -85,14 +85,14 @@ QMap<QString, QString> typedefMap( const CodeModel* model ) return map; } -static void typedefMap( QMap<QString, QString> & map, const CodeModel * model ) +static void typedefMap( TQMap<TQString, TQString> & map, const CodeModel * model ) { const FileList fileList = model->fileList(); for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ) typedefMap( map, model_cast<NamespaceDom>(*it) ); } -static void typedefMap( QMap<QString, QString> & map, NamespaceDom ns ) +static void typedefMap( TQMap<TQString, TQString> & 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<QString, QString> & map, NamespaceDom ns ) typedefMap( map, *it ); } -static void typedefMap( QMap<QString, QString> & map, ClassDom klass ) +static void typedefMap( TQMap<TQString, TQString> & 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<QString, QString> & 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"); |