summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/qtbindings')
-rw-r--r--kjsembed/qtbindings/qcanvasitem_imp.cpp2
-rw-r--r--kjsembed/qtbindings/qt_imp.cpp10
-rw-r--r--kjsembed/qtbindings/qt_imp.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/kjsembed/qtbindings/qcanvasitem_imp.cpp b/kjsembed/qtbindings/qcanvasitem_imp.cpp
index 278252eb..36105a92 100644
--- a/kjsembed/qtbindings/qcanvasitem_imp.cpp
+++ b/kjsembed/qtbindings/qcanvasitem_imp.cpp
@@ -163,7 +163,7 @@ TQCanvasItem *TQCanvasItemImp::toTQCanvasItem( KJS::Object &self )
if ( !op )
return 0;
/*
- if ( !op->inherits(TQCANVASITEM_OBJECT_NAME_STRING) ) {
+ if ( !op->inherits("TQCanvasItem") ) {
kdDebug() << "Typename of opaque canvas item is " << op->typeName() << endl;
// Check superclasses
return 0;
diff --git a/kjsembed/qtbindings/qt_imp.cpp b/kjsembed/qtbindings/qt_imp.cpp
index d7b2ed2e..899710f2 100644
--- a/kjsembed/qtbindings/qt_imp.cpp
+++ b/kjsembed/qtbindings/qt_imp.cpp
@@ -718,15 +718,15 @@ void QtImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
/**
- * Extract a Qt pointer from an Object.
+ * Extract a TQt pointer from an Object.
*/
-Qt *QtImp::toQt( KJS::Object &self )
+TQt *QtImp::toTQt( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<Qt *>( obj );
+ return dynamic_cast<TQt *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
@@ -736,7 +736,7 @@ Qt *QtImp::toQt( KJS::Object &self )
if ( op->typeName() != "Qt" )
return 0;
- return op->toNative<Qt>();
+ return op->toNative<TQt>();
}
/**
@@ -757,7 +757,7 @@ KJS::Object QtImp::construct( KJS::ExecState *exec, const KJS::List &args )
KJS::Value QtImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
{
- instance = QtImp::toQt( self );
+ instance = QtImp::toTQt( self );
switch( id ) {
diff --git a/kjsembed/qtbindings/qt_imp.h b/kjsembed/qtbindings/qt_imp.h
index 4dfbfc3c..5faa7be5 100644
--- a/kjsembed/qtbindings/qt_imp.h
+++ b/kjsembed/qtbindings/qt_imp.h
@@ -51,7 +51,7 @@ public:
*/
static void addBindings( KJS::ExecState *exec, KJS::Object &object );
- static Qt *toQt( KJS::Object &object );
+ static TQt *toTQt( KJS::Object &object );
//
// Constructors implemented by this class.
@@ -80,7 +80,7 @@ public:
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
private:
- Qt *instance; // Temp
+ TQt *instance; // Temp
int id;
bool cons;
};