summaryrefslogtreecommitdiffstats
path: root/kode/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/printer.cpp')
-rw-r--r--kode/printer.cpp20
1 files changed, 10 insertions, 10 deletions
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 ) ) {