diff options
Diffstat (limited to 'kjsembed/kjscmd.cpp')
-rw-r--r-- | kjsembed/kjscmd.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kjsembed/kjscmd.cpp b/kjsembed/kjscmd.cpp index 6caccdc3..4b6604cf 100644 --- a/kjsembed/kjscmd.cpp +++ b/kjsembed/kjscmd.cpp @@ -20,9 +20,9 @@ #include <stdio.h> #include <errno.h> -#include <qstring.h> +#include <tqstring.h> -#include <qregexp.h> +#include <tqregexp.h> #include <kaboutdata.h> #include <kapplication.h> @@ -55,11 +55,11 @@ int main( int argc, char **argv ) { bool nogui = false; bool doexec = false; - QCString appName = "kjscmd"; + TQCString appName = "kjscmd"; // Set the name of the instance for ( int i = 1 ; i < argc ; i++ ) { - QCString arg( argv[i] ); + TQCString arg( argv[i] ); if ( arg[0] != '-' ) { appName = arg.mid( arg.findRev('/') ); if ( !appName ) @@ -99,7 +99,7 @@ int main( int argc, char **argv ) } else { app = new KApplication; - app->connect( app, SIGNAL( lastWindowClosed() ), SLOT(quit()) ); + app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); } // Setup the rest @@ -144,8 +144,8 @@ int main( int argc, char **argv ) bool ok = part->runFile( args->arg(0) ); KJS::Completion jsres = part->completion(); if ( jsres.complType() != KJS::Normal) { - QTextStream err( stderr, IO_WriteOnly ); - QTextStream out( stdout, IO_WriteOnly ); + TQTextStream err( stderr, IO_WriteOnly ); + TQTextStream out( stdout, IO_WriteOnly ); switch ( jsres.complType() ) { case KJS::Break: @@ -162,8 +162,8 @@ int main( int argc, char **argv ) KJS::Object exception = jsres.value().toObject(exec); int line = exception.get(exec,KJS::Identifier("line")).toNumber(exec); - QString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring(); - QString message = exception.get(exec,KJS::Identifier("message")).toString(exec).qstring(); + TQString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring(); + TQString message = exception.get(exec,KJS::Identifier("message")).toString(exec).qstring(); err << "Uncaught " << type << " exception at: " << line << endl; err << message << endl; @@ -183,7 +183,7 @@ int main( int argc, char **argv ) result = app->exec(); if ( args->isSet( "interactive" ) ) { - part->execute( QString("include('cmdline.js');") ); + part->execute( TQString("include('cmdline.js');") ); } return result; |