summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings/qcanvasview_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/qtbindings/qcanvasview_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/qtbindings/qcanvasview_imp.cpp')
-rw-r--r--kjsembed/qtbindings/qcanvasview_imp.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kjsembed/qtbindings/qcanvasview_imp.cpp b/kjsembed/qtbindings/qcanvasview_imp.cpp
index f51e7f0c..bf190920 100644
--- a/kjsembed/qtbindings/qcanvasview_imp.cpp
+++ b/kjsembed/qtbindings/qcanvasview_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 "qcanvasview_imp.h"
/**
@@ -43,7 +43,7 @@ void QCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec
};
int idx = 0;
- QCString lastName;
+ TQCString lastName;
while( methods[idx].name ) {
if ( lastName != methods[idx].name ) {
@@ -73,7 +73,7 @@ void QCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- QCString lastName;
+ TQCString lastName;
while( methods[idx].name ) {
if ( lastName != methods[idx].name ) {
@@ -86,25 +86,25 @@ void QCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
/**
- * Extract a QCanvasView pointer from an Object.
+ * Extract a TQCanvasView pointer from an Object.
*/
-QCanvasView *QCanvasViewImp::toQCanvasView( KJS::Object &self )
+TQCanvasView *QCanvasViewImp::toQCanvasView( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- QObject *obj = ob->object();
+ TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<QCanvasView *>( obj );
+ return dynamic_cast<TQCanvasView *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "QCanvasView" )
+ if ( op->typeName() != "TQCanvasView" )
return 0;
- return op->toNative<QCanvasView>();
+ return op->toNative<TQCanvasView>();
}
/**
@@ -126,7 +126,7 @@ KJS::Object QCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &ar
break;
}
- QString msg = i18n("QCanvasViewCons has no constructor with id '%1'.").arg(id);
+ TQString msg = i18n("QCanvasViewCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -134,50 +134,50 @@ KJS::Object QCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &ar
KJS::Object QCanvasViewImp::QCanvasView_1( KJS::ExecState *exec, const KJS::List &args )
{
- QWidget *arg0 = extractQWidget(exec, args, 0);
+ TQWidget *arg0 = extractQWidget(exec, args, 0);
const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0;
- Qt::WFlags arg2 = 0; // TODO (hack for QCanvasView)
+ Qt::WFlags arg2 = 0; // TODO (hack for TQCanvasView)
- // We should now create an instance of the QCanvasView object
+ // We should now create an instance of the TQCanvasView object
- QCanvasView *ret = new QCanvasView(
+ TQCanvasView *ret = new TQCanvasView(
arg0,
arg1,
arg2 );
- JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "QCanvasView");
+ JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView");
return KJS::Object( prx );
}
KJS::Object QCanvasViewImp::QCanvasView_2( KJS::ExecState *exec, const KJS::List &args )
{
- QCanvas * arg0 = 0L;;
+ TQCanvas * arg0 = 0L;;
KJS::Object obj = args[0].toObject(exec);
JSObjectProxy *proxy = JSProxy::toObjectProxy( obj.imp() );
- if ( proxy ) arg0 = dynamic_cast<QCanvas *>( proxy->widget() );
+ if ( proxy ) arg0 = dynamic_cast<TQCanvas *>( proxy->widget() );
- QWidget * arg1 = extractQWidget(exec, args, 1);
+ TQWidget * arg1 = extractQWidget(exec, args, 1);
const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0;
- Qt::WFlags arg3 = 0; // TODO (hack for QCanvasView)
+ Qt::WFlags arg3 = 0; // TODO (hack for TQCanvasView)
- // We should now create an instance of the QCanvasView object
+ // We should now create an instance of the TQCanvasView object
- QCanvasView *ret = new QCanvasView(
+ TQCanvasView *ret = new TQCanvasView(
arg0,
arg1,
arg2,
arg3 );
- JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "QCanvasView");
+ JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView");
return KJS::Object( prx );
}
@@ -211,7 +211,7 @@ KJS::Value QCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const
break;
}
- QString msg = i18n( "QCanvasViewImp has no method with id '%1'." ).arg( id );
+ TQString msg = i18n( "QCanvasViewImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -220,17 +220,17 @@ KJS::Value QCanvasViewImp::canvas_4( KJS::ExecState *exec, KJS::Object &obj, con
{
instance->canvas( );
- return KJS::Value(); // Returns 'QCanvas *'
+ return KJS::Value(); // Returns 'TQCanvas *'
}
KJS::Value QCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QCanvas *
+ // Unsupported parameter TQCanvas *
return KJS::Value();
- QCanvas * arg0; // Dummy
+ TQCanvas * arg0; // Dummy
instance->setCanvas(
arg0 );
@@ -242,7 +242,7 @@ KJS::Value QCanvasViewImp::worldMatrix_6( KJS::ExecState *exec, KJS::Object &obj
{
instance->worldMatrix( );
- return KJS::Value(); // Returns 'const QWMatrix &'
+ return KJS::Value(); // Returns 'const TQWMatrix &'
}
@@ -250,14 +250,14 @@ KJS::Value QCanvasViewImp::inverseWorldMatrix_7( KJS::ExecState *exec, KJS::Obje
{
instance->inverseWorldMatrix( );
- return KJS::Value(); // Returns 'const QWMatrix &'
+ return KJS::Value(); // Returns 'const TQWMatrix &'
}
KJS::Value QCanvasViewImp::setWorldMatrix_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QWMatrix arg0; // TODO (hack for qcanvasview)
+ TQWMatrix arg0; // TODO (hack for qcanvasview)
bool ret;
ret = instance->setWorldMatrix(