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/simpletypefunction.h | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'languages/cpp/simpletypefunction.h') diff --git a/languages/cpp/simpletypefunction.h b/languages/cpp/simpletypefunction.h index a0bd34fc..90b5fcab 100644 --- a/languages/cpp/simpletypefunction.h +++ b/languages/cpp/simpletypefunction.h @@ -46,20 +46,20 @@ class SimpleTypeFunctionInterface { ///Returns the totally unresolved return-type virtual TypeDesc getReturnType() = 0; - virtual QValueList getArgumentTypes() = 0; + virtual TQValueList getArgumentTypes() = 0; - virtual QStringList getArgumentDefaults() = 0; + virtual TQStringList getArgumentDefaults() = 0; - virtual QStringList getArgumentNames() = 0; + virtual TQStringList getArgumentNames() = 0; virtual bool isConst() = 0; - virtual QString signature(); + virtual TQString signature(); ///TODO: This function should locate the correct overloaded method in the chain, fitting the parameters ///should also moved into another class then - SimpleTypeImpl* match( const QValueList& /*params*/ ) { - // QValueList args = getArgumentTypes(); + SimpleTypeImpl* match( const TQValueList& /*params*/ ) { + // TQValueList args = getArgumentTypes(); return dynamic_cast( this ); } @@ -80,7 +80,7 @@ class SimpleTypeFunctionInterface { void resolveImplicitTypes( TypeDesc::TemplateParams& argTypes, TypeDesc::TemplateParams& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ); ///Tries to match the types, filling implicit template-params into paramInfo - void resolveImplicitTypes( QValueList& argTypes, QValueList& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ); + void resolveImplicitTypes( TQValueList& argTypes, TQValueList& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ); }; template @@ -114,7 +114,7 @@ public: return ret; } - virtual LocateResult applyOperator( typename Base::Operator op , QValueList params ) { + virtual LocateResult applyOperator( typename Base::Operator op , TQValueList params ) { Debug d("#apply#"); if( !d ) return LocateResult(); @@ -131,9 +131,9 @@ public: /** This is the place where implicit template-function-instatiation takes place. * Match the given param-types with the argument-types to resolve new template-params. */ - QValueList args = getArgumentTypes(); - QValueList paramDescs; - for( QValueList::iterator it = params.begin(); it != params.end(); ++it ) + TQValueList args = getArgumentTypes(); + TQValueList paramDescs; + for( TQValueList::iterator it = params.begin(); it != params.end(); ++it ) paramDescs << (TypeDesc)(*it); resolveImplicitTypes( args, paramDescs, paramInfo ); ///paramInfo now contains the information for all implicit types @@ -167,7 +167,7 @@ public: init(); } - SimpleTypeCodeModel( const QStringList& scope ) : SimpleTypeImpl( scope ) { + SimpleTypeCodeModel( const TQStringList& scope ) : SimpleTypeImpl( scope ) { init(); } @@ -175,7 +175,7 @@ public: return (bool)m_item; }; - virtual QString comment() const { + virtual TQString comment() const { if( m_item ) { return m_item->comment(); } else { @@ -209,14 +209,14 @@ public: virtual TemplateParamInfo getTemplateParamInfo(); - virtual const LocateResult findTemplateParam( const QString& name ); + virtual const LocateResult findTemplateParam( const TQString& name ); /** In case of a class, returns all base-types */ - virtual QStringList getBaseStrings(); + virtual TQStringList getBaseStrings(); ItemDom locateModelContainer( class CodeModel* m, TypeDesc t, ClassDom cnt = ClassDom() ); - virtual QString specialization() const; + virtual TQString specialization() const; virtual void addAliasesTo( SimpleTypeNamespace* ns ); @@ -227,7 +227,7 @@ private: void init(); - //ClassDom pickMostRelated( ClassList lst, QString fn ); + //ClassDom pickMostRelated( ClassList lst, TQString fn ); protected: SimpleTypeCodeModel() : SimpleTypeImpl() { @@ -247,7 +247,7 @@ protected: virtual MemberInfo findMember( TypeDesc name , MemberInfo::MemberType type = MemberInfo::AllTypes) ; - virtual QValueList getMemberClasses( const TypeDesc& name ) ; + virtual TQValueList getMemberClasses( const TypeDesc& name ) ; }; @@ -270,11 +270,11 @@ public: virtual bool isConst(); - virtual QValueList getArgumentTypes(); + virtual TQValueList getArgumentTypes(); - virtual QStringList getArgumentNames(); + virtual TQStringList getArgumentNames(); - virtual QStringList getArgumentDefaults(); + virtual TQStringList getArgumentDefaults(); struct CodeModelFunctionBuildInfo : public TypeBuildInfo { FunctionList m_items; @@ -313,11 +313,11 @@ public: } struct CatalogFunctionBuildInfo : public TypeBuildInfo { - QValueList m_tags; + TQValueList m_tags; TypeDesc m_desc; TypePointer m_parent; - CatalogFunctionBuildInfo( QValueList tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) { + CatalogFunctionBuildInfo( TQValueList tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) { } virtual TypePointer build(); @@ -327,13 +327,13 @@ public: virtual bool isConst (); - virtual QStringList getArgumentDefaults() { - return QStringList(); + virtual TQStringList getArgumentDefaults() { + return TQStringList(); } - virtual QStringList getArgumentNames(); + virtual TQStringList getArgumentNames(); - virtual QValueList getArgumentTypes(); + virtual TQValueList getArgumentTypes(); }; -- cgit v1.2.1