diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/qtbindings/qmenudata_imp.cpp | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/qtbindings/qmenudata_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qmenudata_imp.cpp | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/kjsembed/qtbindings/qmenudata_imp.cpp b/kjsembed/qtbindings/qmenudata_imp.cpp index 925e4125..22b16d3e 100644 --- a/kjsembed/qtbindings/qmenudata_imp.cpp +++ b/kjsembed/qtbindings/qmenudata_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQMenuDataImp::TQMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) +TQMenuDataImp::TQMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQMenuDataImp::~TQMenuDataImp() +TQMenuDataImp::~TQMenuDataImp() { } @@ -43,7 +43,7 @@ void TQMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -121,7 +121,7 @@ void TQMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -134,25 +134,25 @@ void TQMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQMenuData pointer from an Object. + * Extract a TQMenuData pointer from an Object. */ -TTQMenuData *TQMenuDataImp::toTQMenuData( KJS::Object &self ) +TQMenuData *TQMenuDataImp::toTQMenuData( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQMenuData *>( obj ); + return dynamic_cast<TQMenuData *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQMenuData" ) + if ( op->typeName() != "TQMenuData" ) return 0; - return op->toNative<TTQMenuData>(); + return op->toNative<TQMenuData>(); } /** @@ -170,7 +170,7 @@ KJS::Object TQMenuDataImp::construct( KJS::ExecState *exec, const KJS::List &arg break; } - TTQString msg = i18n("TQMenuDataCons has no constructor with id '%1'").arg(id); + TQString msg = i18n("TQMenuDataCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -179,9 +179,9 @@ KJS::Object TQMenuDataImp::TQMenuData_1( KJS::ExecState *exec, const KJS::List & { - // We should now create an instance of the TTQMenuData object + // We should now create an instance of the TQMenuData object - TTQMenuData *ret = new TTQMenuData( + TQMenuData *ret = new TQMenuData( ); return KJS::Object(); @@ -409,7 +409,7 @@ KJS::Value TQMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TTQString msg = i18n( "TQMenuDataImp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "TQMenuDataImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -426,19 +426,19 @@ KJS::Value TQMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -462,21 +462,21 @@ KJS::Value TQMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -498,19 +498,19 @@ KJS::Value TQMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -534,21 +534,21 @@ KJS::Value TQMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -570,7 +570,7 @@ KJS::Value TQMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -591,9 +591,9 @@ KJS::Value TQMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -612,12 +612,12 @@ KJS::Value TQMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -639,14 +639,14 @@ KJS::Value TQMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -666,7 +666,7 @@ KJS::Value TQMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -687,9 +687,9 @@ KJS::Value TQMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -708,12 +708,12 @@ KJS::Value TQMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -735,14 +735,14 @@ KJS::Value TQMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -762,10 +762,10 @@ KJS::Value TQMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQWidget * + // Unsupported parameter TQWidget * return KJS::Value(); - TTQWidget * arg0; // Dummy + TQWidget * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -786,12 +786,12 @@ KJS::Value TQMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - // Unsupported parameter TTQCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - TTQCustomMenuItem * arg1; // Dummy + TQCustomMenuItem * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -810,10 +810,10 @@ KJS::Value TQMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - TTQCustomMenuItem * arg0; // Dummy + TQCustomMenuItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -887,7 +887,7 @@ KJS::Value TQMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, c // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg0; // Dummy + const TQKeySequence arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -905,7 +905,7 @@ KJS::Value TQMenuDataImp::iconSet_25( KJS::ExecState *exec, KJS::Object &obj, co instance->iconSet( arg0 ); - return KJS::Value(); // Returns 'TTQIconSet *' + return KJS::Value(); // Returns 'TQIconSet *' } @@ -914,7 +914,7 @@ KJS::Value TQMenuDataImp::text_26( KJS::ExecState *exec, KJS::Object &obj, const int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -928,7 +928,7 @@ KJS::Value TQMenuDataImp::pixmap_27( KJS::ExecState *exec, KJS::Object &obj, con instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'TTQPixmap *' + return KJS::Value(); // Returns 'TQPixmap *' } @@ -937,7 +937,7 @@ KJS::Value TQMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &ob int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->setWhatsThis( arg0, @@ -951,7 +951,7 @@ KJS::Value TQMenuDataImp::whatsThis_29( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->whatsThis( arg0 ); return KJS::String( ret ); @@ -963,7 +963,7 @@ KJS::Value TQMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->changeItem( arg0, @@ -977,7 +977,7 @@ KJS::Value TQMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->changeItem( arg0, @@ -994,9 +994,9 @@ KJS::Value TQMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); instance->changeItem( arg0, @@ -1014,9 +1014,9 @@ KJS::Value TQMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - TTQPixmap arg2 = extractTQPixmap(exec, args, 2); + TQPixmap arg2 = extractTQPixmap(exec, args, 2); instance->changeItem( arg0, @@ -1029,7 +1029,7 @@ KJS::Value TQMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1043,7 +1043,7 @@ KJS::Value TQMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1060,9 +1060,9 @@ KJS::Value TQMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -1218,10 +1218,10 @@ KJS::Value TQMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1239,10 +1239,10 @@ KJS::Value TQMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object & int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1289,7 +1289,7 @@ KJS::Value TQMenuDataImp::findItem_52( KJS::ExecState *exec, KJS::Object &obj, c instance->findItem( arg0 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } @@ -1298,25 +1298,25 @@ KJS::Value TQMenuDataImp::findItem_53( KJS::ExecState *exec, KJS::Object &obj, c int arg0 = extractInt(exec, args, 0); - // Unsupported parameter TTQMenuData ** + // Unsupported parameter TQMenuData ** return KJS::Value(); - TTQMenuData ** arg1; // Dummy + TQMenuData ** arg1; // Dummy instance->findItem( arg0, arg1 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } KJS::Value TQMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg0; // Dummy + TQPopupMenu * arg0; // Dummy // Unsupported parameter int * return KJS::Value(); @@ -1326,7 +1326,7 @@ KJS::Value TQMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, instance->findPopup( arg0, arg1 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } |