summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppsupport_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/cppsupport_utils.cpp')
-rw-r--r--languages/cpp/cppsupport_utils.cpp42
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");