summaryrefslogtreecommitdiffstats
path: root/kode/file.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/file.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/file.cpp')
-rw-r--r--kode/file.cpp30
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 );
}