diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kode/function.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; } |