From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/printer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kode/printer.cpp') diff --git a/kode/printer.cpp b/kode/printer.cpp index 5fa8907c..ddb5e5c4 100644 --- a/kode/printer.cpp +++ b/kode/printer.cpp @@ -199,8 +199,8 @@ TQString Printer::classHeader( const Class &c ) code += "{"; code.indent(); - if ( c.isQObject() ) { - code += "Q_OBJECT"; + if ( c.isTQObject() ) { + code += "TQ_OBJECT"; code.newLine(); } @@ -308,9 +308,9 @@ TQString Printer::classImplementation( const Class &c ) code += ""; } - if ( c.isQObject() ) { + if ( c.isTQObject() ) { code.newLine(); - code += "#include \"" + c.name().lower() + ".moc\""; + code += "#include \"" + c.name().lower() + ".tqmoc\""; } return code.text(); @@ -346,7 +346,7 @@ void Printer::printHeader( const File &f ) TQStringList includes = (*it).headerIncludes(); TQStringList::ConstIterator it2; for( it2 = includes.begin(); it2 != includes.end(); ++it2 ) { - if ( processed.find( *it2 ) == processed.end() ) { + if ( processed.tqfind( *it2 ) == processed.end() ) { out += "#include <" + *it2 + ">"; processed.append( *it2 ); } @@ -361,7 +361,7 @@ void Printer::printHeader( const File &f ) TQStringList decls = (*it).forwardDeclarations(); TQStringList::ConstIterator it2; for( it2 = decls.begin(); it2 != decls.end(); ++it2 ) { - if ( processed.find( *it2 ) == processed.end() ) { + if ( processed.tqfind( *it2 ) == processed.end() ) { out += "class " + *it2 + ";"; processed.append( *it2 ); } @@ -395,7 +395,7 @@ void Printer::printHeader( const File &f ) if ( !mOutputDirectory.isEmpty() ) filename.prepend( mOutputDirectory + "/" ); - KSaveFile::backupFile( filename, TQString::null, ".backup" ); + KSaveFile::backupFile( filename, TQString(), ".backup" ); TQFile header( filename ); if ( !header.open( IO_WriteOnly ) ) { @@ -441,7 +441,7 @@ void Printer::printImplementation( const File &f, bool createHeaderInclude ) TQStringList includes = (*it).includes(); TQStringList::ConstIterator it2; for( it2 = includes.begin(); it2 != includes.end(); ++it2 ) { - if ( processed.find( *it2 ) == processed.end() ) { + if ( processed.tqfind( *it2 ) == processed.end() ) { out += "#include <" + *it2 + ">"; processed.append( *it2 ); } @@ -508,7 +508,7 @@ void Printer::printImplementation( const File &f, bool createHeaderInclude ) if ( !mOutputDirectory.isEmpty() ) filename.prepend( mOutputDirectory + "/" ); - KSaveFile::backupFile( filename, TQString::null, ".backup" ); + KSaveFile::backupFile( filename, TQString(), ".backup" ); TQFile implementation( filename ); if ( !implementation.open( IO_WriteOnly ) ) { @@ -529,7 +529,7 @@ void Printer::printAutoMakefile( const AutoMakefile &am ) if ( !mOutputDirectory.isEmpty() ) filename.prepend( mOutputDirectory + "/" ); - KSaveFile::backupFile( filename, TQString::null, ".backup" ); + KSaveFile::backupFile( filename, TQString(), ".backup" ); TQFile file( filename ); if ( !file.open( IO_WriteOnly ) ) { -- cgit v1.2.3