diff options
Diffstat (limited to 'kode/file.cpp')
-rw-r--r-- | kode/file.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
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 <kdebug.h> -#include <qfile.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqtextstream.h> 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 ); } |