diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kode/printer.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
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
Diffstat (limited to 'kode/printer.cpp')
-rw-r--r-- | kode/printer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kode/printer.cpp b/kode/printer.cpp index 5fa8907c4..ddb5e5c44 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 ) ) { |