diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/qtbindings/qcanvaspolygon_imp.cpp | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/qtbindings/qcanvaspolygon_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qcanvaspolygon_imp.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp index 37109043..9af85744 100644 --- a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasPolygonImp::TQCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasPolygonImp::TQCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasPolygonImp::~TQCanvasPolygonImp() +TQCanvasPolygonImp::~TQCanvasPolygonImp() { } @@ -43,7 +43,7 @@ void TQCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &o }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -73,7 +73,7 @@ void TQCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -86,25 +86,25 @@ void TQCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TTQCanvasPolygon pointer from an Object. + * Extract a TQCanvasPolygon pointer from an Object. */ -TTQCanvasPolygon *TQCanvasPolygonImp::toTQCanvasPolygon( KJS::Object &self ) +TQCanvasPolygon *TQCanvasPolygonImp::toTQCanvasPolygon( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasPolygon *>( obj ); + return dynamic_cast<TQCanvasPolygon *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasPolygon" ) + if ( op->typeName() != "TQCanvasPolygon" ) return 0; - return op->toNative<TTQCanvasPolygon>(); + return op->toNative<TQCanvasPolygon>(); } /** @@ -122,7 +122,7 @@ KJS::Object TQCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasPolygonCons has no constructor with id '%1',").arg(id); + TQString msg = i18n("TQCanvasPolygonCons has no constructor with id '%1',").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -130,15 +130,15 @@ KJS::Object TQCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasPolygonImp::TQCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasPolygon object + // We should now create an instance of the TQCanvasPolygon object - TTQCanvasPolygon *ret = new TTQCanvasPolygon( + TQCanvasPolygon *ret = new TQCanvasPolygon( arg0 ); @@ -175,7 +175,7 @@ KJS::Value TQCanvasPolygonImp::call( KJS::ExecState *exec, KJS::Object &self, co break; } - TTQString msg = i18n( "TQCanvasPolygonImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasPolygonImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -186,7 +186,7 @@ KJS::Value TQCanvasPolygonImp::setPoints_3( KJS::ExecState *exec, KJS::Object &o // Unsupported parameter TQPointArray return KJS::Value(); - TTQPointArray arg0; // Dummy + TQPointArray arg0; // Dummy instance->setPoints( arg0 ); |