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/simpletypefunction.h | |
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/simpletypefunction.h')
-rw-r--r-- | languages/cpp/simpletypefunction.h | 54 |
1 files changed, 27 insertions, 27 deletions
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<TypeDesc> getArgumentTypes() = 0; + virtual TQValueList<TypeDesc> 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<LocateResult>& /*params*/ ) { - // QValueList<TypeDesc> args = getArgumentTypes(); + SimpleTypeImpl* match( const TQValueList<LocateResult>& /*params*/ ) { + // TQValueList<TypeDesc> args = getArgumentTypes(); return dynamic_cast<SimpleTypeImpl*>( 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<TypeDesc>& argTypes, QValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ); + void resolveImplicitTypes( TQValueList<TypeDesc>& argTypes, TQValueList<TypeDesc>& gottenArgTypes, SimpleTypeImpl::TemplateParamInfo& paramInfo ); }; template <class Base=SimpleTypeImpl> @@ -114,7 +114,7 @@ public: return ret; } - virtual LocateResult applyOperator( typename Base::Operator op , QValueList<LocateResult> params ) { + virtual LocateResult applyOperator( typename Base::Operator op , TQValueList<LocateResult> 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<TypeDesc> args = getArgumentTypes(); - QValueList<TypeDesc> paramDescs; - for( QValueList<LocateResult>::iterator it = params.begin(); it != params.end(); ++it ) + TQValueList<TypeDesc> args = getArgumentTypes(); + TQValueList<TypeDesc> paramDescs; + for( TQValueList<LocateResult>::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<TypePointer> getMemberClasses( const TypeDesc& name ) ; + virtual TQValueList<TypePointer> getMemberClasses( const TypeDesc& name ) ; }; @@ -270,11 +270,11 @@ public: virtual bool isConst(); - virtual QValueList<TypeDesc> getArgumentTypes(); + virtual TQValueList<TypeDesc> 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<Tag> m_tags; + TQValueList<Tag> m_tags; TypeDesc m_desc; TypePointer m_parent; - CatalogFunctionBuildInfo( QValueList<Tag> tags, TypeDesc& desc, TypePointer parent ) : m_tags( tags ), m_desc( desc ), m_parent( parent ) { + CatalogFunctionBuildInfo( TQValueList<Tag> 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<TypeDesc> getArgumentTypes(); + virtual TQValueList<TypeDesc> getArgumentTypes(); }; |