diff options
Diffstat (limited to 'kjsembed/qtbindings/qcanvasrectangle_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qcanvasrectangle_imp.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp index 809d571b..72c7ee08 100644 --- a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp +++ b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp @@ -1,12 +1,12 @@ -#include <qcstring.h> -#include <qimage.h> -#include <qpainter.h> -#include <qpalette.h> -#include <qpixmap.h> -#include <qfont.h> +#include <tqcstring.h> +#include <tqimage.h> +#include <tqpainter.h> +#include <tqpalette.h> +#include <tqpixmap.h> +#include <tqfont.h> #include <kjs/object.h> @@ -15,7 +15,7 @@ #include <kjsembed/jsopaqueproxy.h> #include <kjsembed/jsbinding.h> -#include <qcanvas.h> +#include <tqcanvas.h> #include "qcanvasrectangle_imp.h" /** @@ -43,7 +43,7 @@ void QCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object & }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -76,7 +76,7 @@ void QCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -89,25 +89,25 @@ void QCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a QCanvasRectangle pointer from an Object. + * Extract a TQCanvasRectangle pointer from an Object. */ -QCanvasRectangle *QCanvasRectangleImp::toQCanvasRectangle( KJS::Object &self ) +TQCanvasRectangle *QCanvasRectangleImp::toQCanvasRectangle( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<QCanvasRectangle *>( obj ); + return dynamic_cast<TQCanvasRectangle *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "QCanvasRectangle" ) + if ( op->typeName() != "TQCanvasRectangle" ) return 0; - return op->toNative<QCanvasRectangle>(); + return op->toNative<TQCanvasRectangle>(); } /** @@ -133,7 +133,7 @@ KJS::Object QCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::Lis break; } - QString msg = i18n("QCanvasRectangleCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("QCanvasRectangleCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -141,15 +141,15 @@ KJS::Object QCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::Lis KJS::Object QCanvasRectangleImp::QCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter QCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - QCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the QCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - QCanvasRectangle *ret = new QCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0 ); @@ -159,17 +159,17 @@ KJS::Object QCanvasRectangleImp::QCanvasRectangle_1( KJS::ExecState *exec, const KJS::Object QCanvasRectangleImp::QCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); - // Unsupported parameter QCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - QCanvas * arg1; // Dummy + TQCanvas * arg1; // Dummy - // We should now create an instance of the QCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - QCanvasRectangle *ret = new QCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0, arg1 ); @@ -188,15 +188,15 @@ KJS::Object QCanvasRectangleImp::QCanvasRectangle_3( KJS::ExecState *exec, const int arg3 = extractInt(exec, args, 3); - // Unsupported parameter QCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - QCanvas * arg4; // Dummy + TQCanvas * arg4; // Dummy - // We should now create an instance of the QCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - QCanvasRectangle *ret = new QCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0, arg1, @@ -249,7 +249,7 @@ KJS::Value QCanvasRectangleImp::call( KJS::ExecState *exec, KJS::Object &self, c break; } - QString msg = i18n( "QCanvasRectangleImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "QCanvasRectangleImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -288,7 +288,7 @@ KJS::Value QCanvasRectangleImp::setSize_7( KJS::ExecState *exec, KJS::Object &ob KJS::Value QCanvasRectangleImp::size_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QSize ret; + TQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); @@ -305,7 +305,7 @@ KJS::Value QCanvasRectangleImp::areaPoints_9( KJS::ExecState *exec, KJS::Object KJS::Value QCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect ret; + TQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); @@ -315,10 +315,10 @@ KJS::Value QCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasRectangleImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const QCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( |