diff options
Diffstat (limited to 'kode/function.cpp')
-rw-r--r-- | kode/function.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kode/function.cpp b/kode/function.cpp index 1e379e46c..2cea97368 100644 --- a/kode/function.cpp +++ b/kode/function.cpp @@ -30,7 +30,7 @@ Function::Function() { } -Function::Function( const QString &name, const QString &returnType, +Function::Function( const TQString &name, const TQString &returnType, int access, bool isStatic ) : mAccess( access ), mIsConst( false ), mIsStatic( isStatic ), mReturnType( returnType ), mName( name ) @@ -47,27 +47,27 @@ void Function::setStatic( bool isStatic ) mIsStatic = isStatic; } -void Function::addArgument( const QString &argument ) +void Function::addArgument( const TQString &argument ) { mArguments.append( argument ); } -void Function::addInitializer( const QString &initializer ) +void Function::addInitializer( const TQString &initializer ) { mInitializers.append( initializer ); } -void Function::setArgumentString( const QString &argumentString ) +void Function::setArgumentString( const TQString &argumentString ) { mArguments.clear(); - QStringList arguments = QStringList::split( ",", argumentString ); - QStringList::ConstIterator it; + TQStringList arguments = TQStringList::split( ",", argumentString ); + TQStringList::ConstIterator it; for( it = arguments.begin(); it != arguments.end(); ++it ) { addArgument( *it ); } } -void Function::setBody( const QString &body ) +void Function::setBody( const TQString &body ) { mBody = body; } @@ -77,7 +77,7 @@ void Function::setBody( const Code &body ) mBody = body.text(); } -void Function::addBodyLine( const QString &bodyLine ) +void Function::addBodyLine( const TQString &bodyLine ) { mBody.append( bodyLine ); if ( bodyLine.right( 1 ) != "\n" ) mBody.append( '\n' ); @@ -88,9 +88,9 @@ void Function::setAccess( int a ) mAccess = a; } -QString Function::accessAsString() const +TQString Function::accessAsString() const { - QString access; + TQString access; if ( mAccess & Public ) access = "public"; @@ -107,17 +107,17 @@ QString Function::accessAsString() const return access; } -void Function::setReturnType( const QString &str ) +void Function::setReturnType( const TQString &str ) { mReturnType = str; } -void Function::setName( const QString &str ) +void Function::setName( const TQString &str ) { mName = str; } -void Function::setDocs( const QString &str ) +void Function::setDocs( const TQString &str ) { mDocs = str; } |