From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/file.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kode/file.cpp') diff --git a/kode/file.cpp b/kode/file.cpp index fa93326c9..51c19131f 100644 --- a/kode/file.cpp +++ b/kode/file.cpp @@ -23,8 +23,8 @@ #include -#include -#include +#include +#include using namespace KODE; @@ -33,37 +33,37 @@ File::File() { } -void File::setFilename( const QString &filename ) +void File::setFilename( const TQString &filename ) { mFilename = filename; } -QString File::filename() const +TQString File::filename() const { if ( !mFilename.isEmpty() ) return mFilename; if ( !mClasses.isEmpty() ) { - QString className = mClasses[ 0 ].name(); + TQString className = mClasses[ 0 ].name(); return className.lower(); } - return QString::null; + return TQString::null; } -void File::setNameSpace( const QString &n ) +void File::setNameSpace( const TQString &n ) { mNameSpace = n; } -void File::setProject( const QString &project ) +void File::setProject( const TQString &project ) { if ( project.isEmpty() ) return; mProject = project; } -void File::addCopyright( int year, const QString &name, const QString &email ) +void File::addCopyright( int year, const TQString &name, const TQString &email ) { - QString str = "Copyright (c) " + QString::number( year ) + " " + name + " <" + + TQString str = "Copyright (c) " + TQString::number( year ) + " " + name + " <" + email + ">"; mCopyrightStrings.append( str ); } @@ -73,9 +73,9 @@ void File::setLicense( const License &l ) mLicense = l; } -void File::addInclude( const QString &i ) +void File::addInclude( const TQString &i ) { - QString include = i; + TQString include = i; if( !include.endsWith( ".h" ) ) include.append( ".h" ); if ( mIncludes.find( include ) == mIncludes.end() ) { @@ -97,7 +97,7 @@ void File::insertClass( const Class &c ) mClasses.append( c ); } -bool File::hasClass( const QString &name ) +bool File::hasClass( const TQString &name ) { Class::List::ConstIterator it; for( it = mClasses.begin(); it != mClasses.end(); ++it ) { @@ -106,7 +106,7 @@ bool File::hasClass( const QString &name ) return it != mClasses.end(); } -Class File::findClass( const QString &name ) +Class File::findClass( const TQString &name ) { Class::List::ConstIterator it; for( it = mClasses.begin(); it != mClasses.end(); ++it ) { @@ -125,7 +125,7 @@ void File::addFileFunction( const Function &f ) mFileFunctions.append( f ); } -void File::addExternCDeclaration( const QString &s ) +void File::addExternCDeclaration( const TQString &s ) { mExternCDeclarations.append( s ); } -- cgit v1.2.1