summaryrefslogtreecommitdiffstats
path: root/kjsembed/kjscmd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/kjscmd.cpp
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/kjscmd.cpp')
-rw-r--r--kjsembed/kjscmd.cpp20
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;