summaryrefslogtreecommitdiffstats
path: root/kjsembed/plugins/customqobject_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/plugins/customqobject_plugin.cpp')
-rw-r--r--kjsembed/plugins/customqobject_plugin.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/plugins/customqobject_plugin.cpp b/kjsembed/plugins/customqobject_plugin.cpp
index 6d1fccc7..8538dffc 100644
--- a/kjsembed/plugins/customqobject_plugin.cpp
+++ b/kjsembed/plugins/customqobject_plugin.cpp
@@ -32,20 +32,20 @@
namespace KJSEmbed {
namespace Bindings {
-MyCustomQObjectLoader::MyCustomQObjectLoader( TQObject *parent, const char *name, const TQStringList &args ) :
+MyCustomTQObjectLoader::MyCustomTQObjectLoader( TTQObject *parent, const char *name, const TTQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
-KJS::Object MyCustomQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
+KJS::Object MyCustomTQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
kdDebug() << "Loading a custom object" << endl;
- TQObject *parent = 0L;
+ TTQObject *parent = 0L;
JSObjectProxy *proxy = JSProxy::toObjectProxy( args[0].imp() );
if ( proxy )
parent = proxy->object();
- MyCustomQObjectImp *imp = new MyCustomQObjectImp(parent, "MyCustomQObject" );
+ MyCustomTQObjectImp *imp = new MyCustomTQObjectImp(parent, "MyCustomTQObject" );
JSObjectProxy *prx = new JSObjectProxy( jspart, imp );
KJS::Object proxyObj( prx );
@@ -54,32 +54,32 @@ KJS::Object MyCustomQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::Exec
return proxyObj;
}
-MyCustomQObjectImp::MyCustomQObjectImp(TQObject *parent, const char *name )
- : TQObject(parent, name)
+MyCustomTQObjectImp::MyCustomTQObjectImp(TTQObject *parent, const char *name )
+ : TTQObject(parent, name)
{
- kdDebug() << "New MyCustomQObjectImp " << endl;
+ kdDebug() << "New MyCustomTQObjectImp " << endl;
}
-MyCustomQObjectImp::~MyCustomQObjectImp()
+MyCustomTQObjectImp::~MyCustomTQObjectImp()
{
}
-MyCustomQObjectImp::Mode MyCustomQObjectImp::mode() const
+MyCustomTQObjectImp::Mode MyCustomTQObjectImp::mode() const
{
kdDebug() << "mode() " << endl;
return m_mode;
}
-void MyCustomQObjectImp::setMode( Mode md)
+void MyCustomTQObjectImp::setMode( Mode md)
{
kdDebug() << "setMode() " << endl;
m_mode = md;
}
-TQString MyCustomQObjectImp::thing() const
+TTQString MyCustomTQObjectImp::thing() const
{
kdDebug() << "thing()" << endl;
return m_thing;
}
-void MyCustomQObjectImp::setThing( const TQString &t)
+void MyCustomTQObjectImp::setThing( const TTQString &t)
{
kdDebug() << "setThing() " << t << endl;
m_thing = t;
@@ -89,8 +89,8 @@ void MyCustomQObjectImp::setThing( const TQString &t)
#include <kgenericfactory.h>
-typedef KGenericFactory<KJSEmbed::Bindings::MyCustomQObjectLoader> MyCustomQObjectLoaderFactory;
-K_EXPORT_COMPONENT_FACTORY( libcustomqobjectplugin, MyCustomQObjectLoaderFactory( "MyCustomQObjectLoader" ) )
+typedef KGenericFactory<KJSEmbed::Bindings::MyCustomTQObjectLoader> MyCustomTQObjectLoaderFactory;
+K_EXPORT_COMPONENT_FACTORY( libcustomqobjectplugin, MyCustomTQObjectLoaderFactory( "MyCustomTQObjectLoader" ) )
#include "customqobject_plugin.moc"