diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/kjscmd.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/kjscmd.cpp')
-rw-r--r-- | kjsembed/kjscmd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kjsembed/kjscmd.cpp b/kjsembed/kjscmd.cpp index 4b6604cf..762d8715 100644 --- a/kjsembed/kjscmd.cpp +++ b/kjsembed/kjscmd.cpp @@ -55,11 +55,11 @@ int main( int argc, char **argv ) { bool nogui = false; bool doexec = false; - TQCString appName = "kjscmd"; + TTQCString appName = "kjscmd"; // Set the name of the instance for ( int i = 1 ; i < argc ; i++ ) { - TQCString arg( argv[i] ); + TTQCString arg( argv[i] ); if ( arg[0] != '-' ) { appName = arg.mid( arg.findRev('/') ); if ( !appName ) @@ -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) { - TQTextStream err( stderr, IO_WriteOnly ); - TQTextStream out( stdout, IO_WriteOnly ); + TTQTextStream err( stderr, IO_WriteOnly ); + TTQTextStream 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); - TQString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring(); - TQString message = exception.get(exec,KJS::Identifier("message")).toString(exec).qstring(); + TTQString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring(); + TTQString 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( TQString("include('cmdline.js');") ); + part->execute( TTQString("include('cmdline.js');") ); } return result; |