summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/qfile_imp.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/builtins/qfile_imp.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/builtins/qfile_imp.cpp')
-rw-r--r--kjsembed/builtins/qfile_imp.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kjsembed/builtins/qfile_imp.cpp b/kjsembed/builtins/qfile_imp.cpp
index d404e239..abc38d09 100644
--- a/kjsembed/builtins/qfile_imp.cpp
+++ b/kjsembed/builtins/qfile_imp.cpp
@@ -1,9 +1,9 @@
-#include <qcstring.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qfont.h>
+#include <tqcstring.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqfont.h>
#ifndef QT_ONLY
#include <klocale.h>
@@ -17,7 +17,7 @@
#include <kjsembed/jsbinding.h>
#include <kjsembed/global.h>
-#include <qfile.h>
+#include <tqfile.h>
#include "qfile_imp.h"
/**
@@ -71,7 +71,7 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- QCString lastName;
+ TQCString lastName;
do {
if ( lastName != methods[idx].name ) {
@@ -85,23 +85,23 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
-QFile *QFileImp::toQFile( KJS::Object &self )
+TQFile *QFileImp::toQFile( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- QObject *obj = ob->object();
+ TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<QFile *>( obj );
+ return dynamic_cast<TQFile *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "QFile" )
+ if ( op->typeName() != "TQFile" )
return 0;
- return op->toNative<QFile>();
+ return op->toNative<TQFile>();
}
@@ -121,7 +121,7 @@ KJS::Object QFileImp::construct( KJS::ExecState *exec, const KJS::List &args )
break;
}
- QString msg = i18n("QFileCons has no constructor with id '%1'.").arg(id);
+ TQString msg = i18n("QFileCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -135,7 +135,7 @@ KJS::Object QFileImp::QFile_2( KJS::ExecState *exec, const KJS::List &args )
{
// TODO
- QWidget *arg0 = 0L;
+ TQWidget *arg0 = 0L;
return KJS::Object();
}
@@ -266,7 +266,7 @@ KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
break;
}
- QString msg = i18n( "QFileImp has no method with id '%1'." ).arg( id );
+ TQString msg = i18n( "QFileImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg, KJS::ReferenceError );
}
@@ -274,7 +274,7 @@ KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
KJS::Value QFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString ret;
+ TQString ret;
ret = instance->name( );
return KJS::String( ret );
@@ -283,7 +283,7 @@ KJS::Value QFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::
KJS::Value QFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
instance->setName(
arg0 );
@@ -389,7 +389,7 @@ KJS::Value QFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::L
KJS::Value QFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QFile::Offset arg0 = 0; // TODO (hack for qfile)
+ TQFile::Offset arg0 = 0; // TODO (hack for qfile)
bool ret;
ret = instance->at(
@@ -447,7 +447,7 @@ KJS::Value QFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, cons
KJS::Value QFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QByteArray arg0; // TODO (hack for qfile)
+ TQByteArray arg0; // TODO (hack for qfile)
instance->writeBlock(
arg0 );
@@ -478,7 +478,7 @@ KJS::Value QFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const
KJS::Value QFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
// Unsupported parameter Q_ULONG
return KJS::Value();
@@ -537,7 +537,7 @@ KJS::Value QFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJ
KJS::Value QFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString ret;
+ TQString ret;
ret = instance->errorString( );
return KJS::String( ret );
@@ -546,7 +546,7 @@ KJS::Value QFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, con
KJS::Value QFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
instance->encodeName(
arg0 );
@@ -557,9 +557,9 @@ KJS::Value QFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, cons
KJS::Value QFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- const QCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
+ const TQCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
- QString ret;
+ TQString ret;
ret = instance->decodeName(
arg0 );
return KJS::String( ret );
@@ -569,7 +569,7 @@ KJS::Value QFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, cons
KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
+ TQFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
instance->setEncodingFunction(
arg0 );
@@ -580,7 +580,7 @@ KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &
KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
+ TQFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
instance->setDecodingFunction(
arg0 );
@@ -591,7 +591,7 @@ KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &
KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
bool ret;
ret = instance->exists(
@@ -603,7 +603,7 @@ KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJ
KJS::Value QFileImp::remove_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
bool ret;
ret = instance->remove(