diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/plugins/customqobject_plugin.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/plugins/customqobject_plugin.cpp')
-rw-r--r-- | kjsembed/plugins/customqobject_plugin.cpp | 28 |
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" |