From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- kjsembed/slotutils.cpp | 244 ++++++++++++++++++++++++------------------------- 1 file changed, 122 insertions(+), 122 deletions(-) (limited to 'kjsembed/slotutils.cpp') diff --git a/kjsembed/slotutils.cpp b/kjsembed/slotutils.cpp index 7f429ace..5d929fd2 100644 --- a/kjsembed/slotutils.cpp +++ b/kjsembed/slotutils.cpp @@ -69,33 +69,33 @@ JSSlotUtils::~JSSlotUtils() { } -bool JSSlotUtils::connect( TTQObject *sender, const char *sig, TTQObject *recv, const char *dest ) +bool JSSlotUtils::connect( TQObject *sender, const char *sig, TQObject *recv, const char *dest ) { if ( (!sender) || (!recv) ) return false; // Source - TTQString si = TTQString("2%1").arg(sig); + TQString si = TQString("2%1").arg(sig); const char *sigc = si.ascii(); // Connect to slot if ( recv->metaObject()->findSlot(dest, true) >= 0 ) { - TTQString sl = TTQString("1%1").arg(dest); + TQString sl = TQString("1%1").arg(dest); const char *slotc = sl.ascii(); //kdDebug(80001) << "connect: "<name()<<" "<name()<<" "<metaObject()->findSignal(dest, true) >= 0 ) { - TTQString si2 = TTQString("2%1").arg(dest); + TQString si2 = TQString("2%1").arg(dest); const char *sig2c = si2.ascii(); kdDebug(80001) << "connect: "<name()<<" "<name()<<" "<metaObject()->findSlot(dest, true) >= 0 ) { - TTQString sl = TTQString("1%1").arg(dest); + TQString sl = TQString("1%1").arg(dest); const char *slotc = sl.ascii(); //kdDebug(80001) << "disconnect: "<name()<<" "<name()<<" "<metaObject()->findSignal(dest, true) >= 0 ) { - TTQString si2("2"); + TQString si2("2"); si2 = si2 + dest; const char *sig2c = si2.ascii(); //kdDebug(80001)<< "disconnect: "<name()<<" "<name()<<" "<type->desc() ); + TQCString typenm( uo->type->desc() ); kdDebug(80001) << "JSSlotUtils:extractValue() " << typenm << endl; if ( typenm == "null" ) @@ -157,22 +157,22 @@ KJS::Value JSSlotUtils::extractValue( KJS::ExecState *exec, TQUObject *uo, JSObj return KJS::Number( static_QUType_double.get(uo) ); else if ( typenm == "charstar" ) return KJS::String( static_QUType_charstar.get(uo) ); - else if ( typenm == "TTQString" ) + else if ( typenm == "TQString" ) return KJS::String( static_QUType_TQString.get(uo) ); - else if ( typenm == "TTQVariant" ) + else if ( typenm == "TQVariant" ) return convertToValue( exec, static_QUType_TQVariant.get(uo) ); else if ( typenm == "ptr" ) { void *ptr = static_QUType_ptr.get(uo); - // If it's a TTQObject and we know the parent + // If it's a TQObject and we know the parent if ( ptr && parent ) { - TTQObject *qobj = (TTQObject *)(ptr); // Crash in kst + TQObject *qobj = (TQObject *)(ptr); // Crash in kst return parent->part()->factory()->createProxy( exec, qobj, parent); } } kdWarning(80001) << "JSSlotUtils:extractValue() Failed (" << typenm << ")" << endl; - TTQString msg = i18n( "Value of type (%1) is not supported." ).arg( typenm ); + TQString msg = i18n( "Value of type (%1) is not supported." ).arg( typenm ); throwError(exec, msg,KJS::TypeError); return KJS::Null(); } @@ -213,18 +213,18 @@ void JSSlotUtils::implantCString( KJS::ExecState *exec, TQUObject *uo, const KJS void JSSlotUtils::implantURL( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v,KURL *url ) { - *url = TTQString( v.toString(exec).qstring() ); + *url = TQString( v.toString(exec).qstring() ); static_QUType_ptr.set( uo, url ); } -void JSSlotUtils::implantColor( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQColor *color ) +void JSSlotUtils::implantColor( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQColor *color ) { bool ok; - TTQString s( v.toString(exec).qstring() ); + TQString s( v.toString(exec).qstring() ); if ( s.startsWith("#") ) { - TTQRegExp re("#([0-9a-f][0-9a-f]){3,4}"); + TQRegExp re("#([0-9a-f][0-9a-f]){3,4}"); re.setCaseSensitive( false ); if ( re.search(s) != -1 ) { @@ -233,7 +233,7 @@ void JSSlotUtils::implantColor( KJS::ExecState *exec, TQUObject *uo, const KJS:: uint b = re.cap(3).toUInt(&ok, 16); if ( re.numCaptures() == 3 ) - *color = TTQColor(r,g,b); + *color = TQColor(r,g,b); else if ( re.numCaptures() == 4 ) { uint a = re.cap(4).toUInt(&ok, 16); uint pix = r; @@ -244,20 +244,20 @@ void JSSlotUtils::implantColor( KJS::ExecState *exec, TQUObject *uo, const KJS:: pix = pix << 8; pix = pix | a; - *color = TTQColor( qRgba(r,g,b,a), pix ); + *color = TQColor( qRgba(r,g,b,a), pix ); } } } else { // Try for a named color - *color = TTQColor( s ); + *color = TQColor( s ); } static_QUType_ptr.set( uo, color ); } -void JSSlotUtils::implantPoint( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQPoint *point ) +void JSSlotUtils::implantPoint( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQPoint *point ) { KJS::Object o = v.toObject( exec ); if ( !o.isValid() ) @@ -277,11 +277,11 @@ void JSSlotUtils::implantPoint( KJS::ExecState *exec, TQUObject *uo, const KJS:: else return; - *point = TTQPoint( x, y ); + *point = TQPoint( x, y ); static_QUType_ptr.set( uo, point ); } -void JSSlotUtils::implantSize( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQSize *size ) +void JSSlotUtils::implantSize( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQSize *size ) { KJS::Object o = v.toObject( exec ); if ( !o.isValid() ) @@ -301,11 +301,11 @@ void JSSlotUtils::implantSize( KJS::ExecState *exec, TQUObject *uo, const KJS::V else return; - *size = TTQSize( w, h ); + *size = TQSize( w, h ); static_QUType_ptr.set( uo, size ); } -void JSSlotUtils::implantRect( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQRect *rect ) +void JSSlotUtils::implantRect( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQRect *rect ) { KJS::Object o = v.toObject( exec ); if ( !o.isValid() ) @@ -332,39 +332,39 @@ void JSSlotUtils::implantRect( KJS::ExecState *exec, TQUObject *uo, const KJS::V else return; - *rect = TTQRect( x, y, w, h ); + *rect = TQRect( x, y, w, h ); static_QUType_ptr.set( uo, rect ); } -void JSSlotUtils::implantDate( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQDate *date ) +void JSSlotUtils::implantDate( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQDate *date ) { - TTQDateTime jsDate = convertDateToDateTime(exec, v); + TQDateTime jsDate = convertDateToDateTime(exec, v); date->setYMD( jsDate.date().year(), jsDate.date().month(), jsDate.date().day() ); static_QUType_ptr.set( uo, date ); } -void JSSlotUtils::implantStringList(KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQStringList *lst ) +void JSSlotUtils::implantStringList(KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQStringList *lst ) { *lst = convertArrayToStringList(exec,v); static_QUType_ptr.set(uo,lst); } -void JSSlotUtils::implantTime( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQTime *time ) +void JSSlotUtils::implantTime( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQTime *time ) { - TTQDateTime jsDate = convertDateToDateTime(exec, v); + TQDateTime jsDate = convertDateToDateTime(exec, v); time->setHMS( jsDate.time().hour(), jsDate.time().minute(), jsDate.time().second() ); static_QUType_ptr.set( uo, time ); } -void JSSlotUtils::implantDateTime( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQDateTime *datetime ) +void JSSlotUtils::implantDateTime( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQDateTime *datetime ) { - TTQDateTime jsDate = convertDateToDateTime(exec, v); + TQDateTime jsDate = convertDateToDateTime(exec, v); datetime->setDate( jsDate.date() ); datetime->setTime( jsDate.time() ); static_QUType_ptr.set( uo, datetime ); } -void JSSlotUtils::implantPixmap( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TTQPixmap *pix ) +void JSSlotUtils::implantPixmap( KJS::ExecState *exec, TQUObject *uo, const KJS::Value &v, TQPixmap *pix ) { *pix = convertToVariant(exec, v).toPixmap() ; static_QUType_ptr.set( uo, pix ); @@ -382,7 +382,7 @@ bool JSSlotUtils::implantTQVariant( KJS::ExecState *, TQUObject *uo, const KJS:: } bool JSSlotUtils::implantValueProxy( KJS::ExecState *, TQUObject *uo, - const KJS::Value &val, const TTQString &clazz ) + const KJS::Value &val, const TQString &clazz ) { JSValueProxy *prx = JSProxy::toValueProxy( val.imp() ); if ( !prx ) @@ -391,14 +391,14 @@ bool JSSlotUtils::implantValueProxy( KJS::ExecState *, TQUObject *uo, return false; kdDebug(80001) << "We got a " << prx->typeName() << " and is valid " << prx->toVariant().isValid() << endl; - TTQVariant var = prx->toVariant(); + TQVariant var = prx->toVariant(); kdDebug(80001) << "We got a " << var.typeName()<< " and is valid " << var.isValid() << endl; static_QUType_TQVariant.set( uo, var ); return var.isValid(); } bool JSSlotUtils::implantOpaqueProxy( KJS::ExecState *, TQUObject *uo, - const KJS::Value &v, const TTQString &clazz ) + const KJS::Value &v, const TQString &clazz ) { JSOpaqueProxy *prx = JSProxy::toOpaqueProxy( v.imp() ); if ( !prx ) @@ -411,7 +411,7 @@ bool JSSlotUtils::implantOpaqueProxy( KJS::ExecState *, TQUObject *uo, } bool JSSlotUtils::implantObjectProxy( KJS::ExecState *, TQUObject *uo, - const KJS::Value &v, const TTQString &clazz ) + const KJS::Value &v, const TQString &clazz ) { JSObjectProxy *prx = JSProxy::toObjectProxy( v.imp() ); if ( !prx ) @@ -424,7 +424,7 @@ bool JSSlotUtils::implantObjectProxy( KJS::ExecState *, TQUObject *uo, return true; } -int JSSlotUtils::findSignature( const TTQString &sig ) +int JSSlotUtils::findSignature( const TQString &sig ) { // No args if ( sig.contains("()") ) @@ -444,46 +444,46 @@ int JSSlotUtils::findSignature( const TTQString &sig ) else if ( sig.contains("(double)") ) return SignatureDouble; - else if ( sig.contains("(const TTQString&)") ) + else if ( sig.contains("(const TQString&)") ) return SignatureString; - else if ( sig.contains("(const TTQCString&)") ) + else if ( sig.contains("(const TQCString&)") ) return SignatureCString; else if ( sig.contains("(const char*)") ) return SignatureCString; else if ( sig.contains("(const KURL&)") ) return SignatureURL; - else if ( sig.contains("(const TTQColor&)") ) + else if ( sig.contains("(const TQColor&)") ) return SignatureColor; - else if ( sig.contains("(const TTQPoint&)") ) + else if ( sig.contains("(const TQPoint&)") ) return SignaturePoint; - else if ( sig.contains("(const TTQRect&)") ) + else if ( sig.contains("(const TQRect&)") ) return SignatureRect; - else if ( sig.contains("(const TTQSize&)") ) + else if ( sig.contains("(const TQSize&)") ) return SignatureSize; - else if ( sig.contains("(const TTQPixmap&)") ) + else if ( sig.contains("(const TQPixmap&)") ) return SignaturePixmap; - else if ( sig.contains("(const TTQFont&)") ) + else if ( sig.contains("(const TQFont&)") ) return SignatureFont; - else if ( sig.contains("(const TTQDate&)") ) + else if ( sig.contains("(const TQDate&)") ) return SignatureDate; - else if ( sig.contains("(const TTQTime&)") ) + else if ( sig.contains("(const TQTime&)") ) return SignatureTime; - else if ( sig.contains("(const TTQDateTime&)") ) + else if ( sig.contains("(const TQDateTime&)") ) return SignatureDateTime; - else if ( sig.contains("(const TTQImage&)") ) + else if ( sig.contains("(const TQImage&)") ) return SignatureImage; - else if ( sig.contains("(TTQWidget*)") ) + else if ( sig.contains("(TQWidget*)") ) return SignatureTQWidget; // Two args - else if ( sig.contains("(const TTQDate&, const TTQDate&)") ) + else if ( sig.contains("(const TQDate&, const TQDate&)") ) return SignatureDateDate; - else if ( sig.contains("(const TTQColor&, const TTQString&)") ) + else if ( sig.contains("(const TQColor&, const TQString&)") ) return SignatureColorString; - else if ( sig.contains("(const TTQString&,const TTQString&,const TTQString&)") ) + else if ( sig.contains("(const TQString&,const TQString&,const TQString&)") ) return SignatureStringStringString; - else if ( sig.contains("(const TTQString&,const TTQString&)") ) + else if ( sig.contains("(const TQString&,const TQString&)") ) return SignatureStringString; else if ( sig.contains("(int,int)") ) return SignatureIntInt; @@ -494,57 +494,57 @@ int JSSlotUtils::findSignature( const TTQString &sig ) else if ( sig.contains("(int,int,int,int,bool)") ) return SignatureIntIntIntIntBool; - else if ( sig.contains("(const TTQString&,int)") ) + else if ( sig.contains("(const TQString&,int)") ) return SignatureStringInt; - else if ( sig.contains("(const TTQString&,uint)") ) + else if ( sig.contains("(const TQString&,uint)") ) return SignatureStringInt; else if ( sig.contains("(const KURL&,const KURL&)") ) return SignatureURLURL; - else if ( sig.contains("(const KURL&,const TTQString&)") ) + else if ( sig.contains("(const KURL&,const TQString&)") ) return SignatureURLString; - else if ( sig.contains("(const TTQString&,const KURL&)") ) + else if ( sig.contains("(const TQString&,const KURL&)") ) return SignatureStringURL; - else if ( sig.contains("(const TTQRect&,bool)") ) + else if ( sig.contains("(const TQRect&,bool)") ) return SignatureRectBool; - else if ( sig.contains("(const TTQString&,bool)") ) + else if ( sig.contains("(const TQString&,bool)") ) return SignatureStringBool; else if ( sig.contains("(int,bool)") ) return SignatureIntBool; else if ( sig.contains("(int,int,bool)") ) return SignatureIntIntBool; - else if ( sig.contains("(int,int,const TTQString&)") ) + else if ( sig.contains("(int,int,const TQString&)") ) return SignatureIntIntString; - else if ( sig.contains("(const TTQString&,bool,int)") ) + else if ( sig.contains("(const TQString&,bool,int)") ) return SignatureStringBoolInt; - else if ( sig.contains("(const TTQString&,bool,bool)") ) + else if ( sig.contains("(const TQString&,bool,bool)") ) return SignatureStringBoolBool; - else if ( sig.contains("(const TTQString&,int,int)") ) + else if ( sig.contains("(const TQString&,int,int)") ) return SignatureStringIntInt; - else if ( sig.contains("(int,const TTQColor&,bool)") ) + else if ( sig.contains("(int,const TQColor&,bool)") ) return SignatureIntColorBool; - else if ( sig.contains("(int,const TTQColor&)") ) + else if ( sig.contains("(int,const TQColor&)") ) return SignatureIntColor; else if ( sig.contains("(int,int,float,float)") ) return SignatureIntIntFloatFloat; - else if ( sig.contains("(const TTQString&,bool,bool,bool)") ) + else if ( sig.contains("(const TQString&,bool,bool,bool)") ) return SignatureStringBoolBoolBool; else if ( sig.contains("(int,int,int,int,int,int)") ) return SignatureIntIntIntIntIntInt; // Handle anything that falls through - if ( sig.contains("TTQString") || sig.contains("TTQColor") || + if ( sig.contains("TQString") || sig.contains("TQColor") || sig.contains("int") || sig.contains("bool") || sig.contains("float") || sig.contains("KURL") || - sig.contains("TTQVariant") || sig.contains("TTQSize") || - sig.contains("TTQRect") || sig.contains("TTQPixmap") || - sig.contains("TTQCString") || sig.contains("TTQPoint") || - sig.contains("double") || sig.contains("TTQFont") || - sig.contains("TTQDate") || sig.contains("TTQTime") || - sig.contains("TTQDateTime") || sig.contains("TTQStringList") || - sig.contains("TTQWidget") || sig.contains("TTQObject") || - sig.contains("TTQPen") || sig.contains("TTQImage") ) + sig.contains("TQVariant") || sig.contains("TQSize") || + sig.contains("TQRect") || sig.contains("TQPixmap") || + sig.contains("TQCString") || sig.contains("TQPoint") || + sig.contains("double") || sig.contains("TQFont") || + sig.contains("TQDate") || sig.contains("TQTime") || + sig.contains("TQDateTime") || sig.contains("TQStringList") || + sig.contains("TQWidget") || sig.contains("TQObject") || + sig.contains("TQPen") || sig.contains("TQImage") ) return SignatureCustom; kdWarning(80001) << "findSignature: not supported type " << sig << endl; @@ -563,34 +563,34 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K KJS::Value retValue; JSObjectProxy *proxy = proxyimp->objectProxy(); - TTQCString slotname( proxyimp->slotName() ); + TQCString slotname( proxyimp->slotName() ); int sigid = proxyimp->signature(); - TTQPtrList uintlist; + TQPtrList uintlist; uintlist.setAutoDelete(true); - TTQObject *obj = proxy->object(); + TQObject *obj = proxy->object(); int slotid = obj->metaObject()->findSlot( slotname, true ); if ( slotid == -1 ) { - TTQString msg = i18n( "Slot %1 was not found." ).arg( slotname ); + TQString msg = i18n( "Slot %1 was not found." ).arg( slotname ); return throwError(exec, msg,KJS::ReferenceError); } if ( args.size() > MAX_SUPPORTED_ARGS ) { - TTQString msg = i18n( "Slots with more than %1 arguments are not supported." ).arg( MAX_SUPPORTED_ARGS ); + TQString msg = i18n( "Slots with more than %1 arguments are not supported." ).arg( MAX_SUPPORTED_ARGS ); return throwError(exec, msg,KJS::ReferenceError); } // Keep args in scope for duration of the method. KURL url[MAX_SUPPORTED_ARGS]; - TTQColor color[MAX_SUPPORTED_ARGS]; - TTQPoint point[MAX_SUPPORTED_ARGS]; - TTQSize size[MAX_SUPPORTED_ARGS]; - TTQRect rect[MAX_SUPPORTED_ARGS]; - TTQDate date[MAX_SUPPORTED_ARGS]; - TTQDateTime datetime[MAX_SUPPORTED_ARGS]; - TTQTime time[MAX_SUPPORTED_ARGS]; - TTQPixmap pix[MAX_SUPPORTED_ARGS]; - TTQStringList slst[MAX_SUPPORTED_ARGS]; + TQColor color[MAX_SUPPORTED_ARGS]; + TQPoint point[MAX_SUPPORTED_ARGS]; + TQSize size[MAX_SUPPORTED_ARGS]; + TQRect rect[MAX_SUPPORTED_ARGS]; + TQDate date[MAX_SUPPORTED_ARGS]; + TQDateTime datetime[MAX_SUPPORTED_ARGS]; + TQTime time[MAX_SUPPORTED_ARGS]; + TQPixmap pix[MAX_SUPPORTED_ARGS]; + TQStringList slst[MAX_SUPPORTED_ARGS]; bool notsupported = true; @@ -735,17 +735,17 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K notsupported = false; int argsStart = slotname.find('('); int argsEnd = slotname.find(')'); - TTQString fargs = slotname.mid( argsStart+1, argsEnd-argsStart-1 ); + TQString fargs = slotname.mid( argsStart+1, argsEnd-argsStart-1 ); // Iterate over the parameters - TTQStringList argList = TTQStringList::split(',', fargs, true); + TQStringList argList = TQStringList::split(',', fargs, true); uint count = TQMIN( argList.count(), MAX_SUPPORTED_ARGS ); kdDebug( 80001 ) << "======== arg count " << count << endl; for( uint idx = 0; idx < count; idx++ ) { kdDebug( 80001 ) << "======== Handling arg " << idx << endl; - TTQString arg = argList[idx]; + TQString arg = argList[idx]; arg = arg.replace("const", ""); arg = arg.replace("&", ""); arg = arg.simplifyWhiteSpace(); @@ -761,40 +761,40 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K implantInt( exec, uo+1+idx, args[idx] ); else if ( arg.contains("double") == 1 ) implantDouble(exec, uo+1+idx, args[idx]); - else if ( arg.contains("TTQStringList") == 1 ) + else if ( arg.contains("TQStringList") == 1 ) implantStringList( exec, uo+1+idx, args[idx], &slst[idx] ); - else if ( arg.contains("TTQString") == 1 ) + else if ( arg.contains("TQString") == 1 ) implantTQString(exec, uo+1+idx, args[idx] ); - else if ( arg.contains("TTQCString") == 1 ) + else if ( arg.contains("TQCString") == 1 ) implantCString(exec, uo+1+idx, args[idx] ); else if ( arg.contains("bool") == 1 ) implantBool( exec, uo+1+idx, args[idx] ); else if ( arg.contains("KURL") == 1 ) implantURL( exec, uo+1+idx, args[idx], &url[idx] ); - else if ( arg.contains("TTQColor") == 1 ) + else if ( arg.contains("TQColor") == 1 ) implantColor( exec, uo+1+idx, args[idx], &color[idx] ); - else if ( arg.contains("TTQPoint") == 1 ) + else if ( arg.contains("TQPoint") == 1 ) implantPoint( exec, uo+1+idx, args[idx], &point[idx] ); - else if ( arg.contains("TTQSize") == 1 ) + else if ( arg.contains("TQSize") == 1 ) implantSize( exec, uo+1+idx, args[idx], &size[idx] ); - else if ( arg.contains("TTQRect") == 1 ) + else if ( arg.contains("TQRect") == 1 ) implantRect( exec, uo+1+idx, args[idx], &rect[idx] ); - else if ( arg.contains("TTQDate") == 1 ) + else if ( arg.contains("TQDate") == 1 ) implantDate( exec, uo+1+idx, args[idx], &date[idx] ); - else if ( arg.contains("TTQTime") == 1 ) + else if ( arg.contains("TQTime") == 1 ) implantTime( exec, uo+1+idx, args[idx], &time[idx] ); - else if ( arg.contains("TTQDateTime") == 1 ) + else if ( arg.contains("TQDateTime") == 1 ) implantDateTime( exec, uo+1+idx, args[idx], &datetime[idx] ); - else if ( arg.contains("TTQPixmap") == 1 ) + else if ( arg.contains("TQPixmap") == 1 ) implantPixmap( exec, uo+1+idx, args[idx], &pix[idx] ); else if ( arg.contains("char") == 1) implantCharStar( exec, uo+1+idx, args[idx] ); - else if ( ( arg.contains("TTQObject") == 1 ) || ( arg.contains("TTQWidget") == 1 ) ) + else if ( ( arg.contains("TQObject") == 1 ) || ( arg.contains("TQWidget") == 1 ) ) { - kdDebug( 80001 ) << "Doing a TTQObject" << endl; - notsupported = !implantObjectProxy( exec, uo+1+idx, args[idx], "TTQObject" ); + kdDebug( 80001 ) << "Doing a TQObject" << endl; + notsupported = !implantObjectProxy( exec, uo+1+idx, args[idx], "TQObject" ); } - else if ( TTQVariant::nameToType(arg.latin1()) != TTQVariant::Invalid ) { + else if ( TQVariant::nameToType(arg.latin1()) != TQVariant::Invalid ) { bool ok = implantValueProxy( exec, uo+1+idx, args[idx], arg ); if ( !ok ) { notsupported = true; @@ -805,15 +805,15 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K kdDebug( 80001 ) << "Implanted the variant " << static_QUType_TQVariant.get(uo+1+idx).isValid() << endl; } } - /* else if ( ( arg.contains("TTQVariant") == 1 ) || - ( arg.contains("TTQPen") == 1 ) || (arg.contains("TTQFont") == 1 ) || - ( arg.contains("TTQBrush") == 1 )) + /* else if ( ( arg.contains("TQVariant") == 1 ) || + ( arg.contains("TQPen") == 1 ) || (arg.contains("TQFont") == 1 ) || + ( arg.contains("TQBrush") == 1 )) if(!implantTQVariant(exec, uo+1+idx, args[idx] )){ notsupported = true; break; } */ else if ( arg.contains("*") == 1 ) { - TTQRegExp re("(\\w+)\\*"); + TQRegExp re("(\\w+)\\*"); if ( re.search(arg) >= 0 ) { bool ok = implantObjectProxy( exec, uo+1+idx, args[idx], re.cap(1) ); if ( !ok ) { @@ -844,7 +844,7 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K obj->qt_invoke( slotid, uo ); } // Handle return types - TTQCString ret( proxyimp->returnType() ); + TQCString ret( proxyimp->returnType() ); if ( ret.isEmpty() ) { // Basic type (void, int etc.) return extractValue( exec, uo ); @@ -854,7 +854,7 @@ KJS::Value JSSlotUtils::invokeSlot( KJS::ExecState *exec, KJS::Object &, const K kdDebug(80001) << "Handling a pointer return of type " << ret << endl; if ( proxy->part()->factory()->isTQObject(ret) ) { - kdDebug(80001) << "Return type is TTQObject " << ret << endl; + kdDebug(80001) << "Return type is TQObject " << ret << endl; return extractValue( exec, uo, proxy ); } -- cgit v1.2.1