summaryrefslogtreecommitdiffstats
path: root/languages/cpp/storeconverter.cpp
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/storeconverter.cpp
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/storeconverter.cpp')
-rw-r--r--languages/cpp/storeconverter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/languages/cpp/storeconverter.cpp b/languages/cpp/storeconverter.cpp
index 3569bdea..6ad55925 100644
--- a/languages/cpp/storeconverter.cpp
+++ b/languages/cpp/storeconverter.cpp
@@ -10,7 +10,7 @@
***************************************************************************/
#include "storeconverter.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kdebug.h>
@@ -25,20 +25,20 @@ StoreConverter::StoreConverter(CppSupportPart *part, CodeModel *model)
{
}
-void StoreConverter::PCSClassToCodeModel(const QString &className, const QStringList &/*classScope*/)
+void StoreConverter::PCSClassToCodeModel(const TQString &className, const TQStringList &/*classScope*/)
{
- QValueList<Catalog*> catalogs = m_part->codeRepository()->registeredCatalogs();
- for (QValueList<Catalog*>::iterator it = catalogs.begin();
+ TQValueList<Catalog*> catalogs = m_part->codeRepository()->registeredCatalogs();
+ for (TQValueList<Catalog*>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
Catalog *catalog = *it;
kdDebug() << "looking in catalog: " << catalog->dbName() << endl;
- QValueList<Catalog::QueryArgument> args;
+ TQValueList<Catalog::QueryArgument> args;
args << Catalog::QueryArgument( "kind", Tag::Kind_Class );
args << Catalog::QueryArgument( "name", className );
- QValueList<Tag> tags = catalog->query(args);
- for (QValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it )
+ TQValueList<Tag> tags = catalog->query(args);
+ for (TQValueList<Tag>::iterator it = tags.begin(); it != tags.end(); ++it )
{
Tag& tag = *it;
kdDebug() << "TAG: " << tag.name() << " in file " << tag.fileName() << endl;
@@ -67,13 +67,13 @@ void StoreConverter::parseClass(Tag &classTag, FileDom file)
klass->setName(classTag.name());
klass->setFileName(classTag.fileName());
- QStringList scope;
+ TQStringList scope;
scope.append(classTag.name());
- QValueList<Tag> symbolTags = m_part->codeCompletion()->repository()->
+ TQValueList<Tag> symbolTags = m_part->codeCompletion()->repository()->
getTagsInScope(scope, false);
// kdDebug() << "got tags: " << endl;
- for (QValueList<Tag>::iterator sit = symbolTags.begin(); sit != symbolTags.end(); ++sit )
+ for (TQValueList<Tag>::iterator sit = symbolTags.begin(); sit != symbolTags.end(); ++sit )
{
Tag &symbol = *sit;
// kdDebug() << symbol.name() << endl;
@@ -88,8 +88,8 @@ void StoreConverter::parseClass(Tag &classTag, FileDom file)
}
}
- QValueList<Tag> baseClassTags = m_part->codeCompletion()->repository()->getBaseClassList(classTag.name());
- for (QValueList<Tag>::iterator bit = baseClassTags.begin();
+ TQValueList<Tag> baseClassTags = m_part->codeCompletion()->repository()->getBaseClassList(classTag.name());
+ for (TQValueList<Tag>::iterator bit = baseClassTags.begin();
bit != baseClassTags.end(); ++bit)
klass->addBaseClass((*bit).name());
@@ -135,8 +135,8 @@ void StoreConverter::parseVariable(Tag &var, ClassDom klass)
void StoreConverter::parseArguments(FunctionDom function, CppFunction<Tag> &cppFun)
{
- QStringList args = cppFun.arguments();
- for (QStringList::const_iterator it = args.constBegin(); it != args.constEnd(); ++it)
+ TQStringList args = cppFun.arguments();
+ for (TQStringList::const_iterator it = args.constBegin(); it != args.constEnd(); ++it)
{
ArgumentDom arg = m_model->create<ArgumentModel>();
arg->setType(*it);