From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/plugins/customqobject_plugin.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kjsembed/plugins/customqobject_plugin.h') diff --git a/kjsembed/plugins/customqobject_plugin.h b/kjsembed/plugins/customqobject_plugin.h index b80ac67a..9af6aee6 100644 --- a/kjsembed/plugins/customqobject_plugin.h +++ b/kjsembed/plugins/customqobject_plugin.h @@ -19,8 +19,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef KJSEMBED_CUSTOMQOBJECT_PLUGIN_H -#define KJSEMBED_CUSTOMQOBJECT_PLUGIN_H +#ifndef KJSEMBED_CUSTOMTQOBJECT_PLUGIN_H +#define KJSEMBED_CUSTOMTQOBJECT_PLUGIN_H #include #include @@ -29,36 +29,36 @@ namespace KJSEmbed { namespace Bindings { -class MyCustomQObjectLoader : public JSBindingPlugin +class MyCustomTQObjectLoader : public JSBindingPlugin { public: - MyCustomQObjectLoader( TQObject *parent, const char *name, const TQStringList &args ); - virtual ~MyCustomQObjectLoader(){;} + MyCustomTQObjectLoader( TTQObject *parent, const char *name, const TTQStringList &args ); + virtual ~MyCustomTQObjectLoader(){;} KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const; }; -class MyCustomQObjectImp : public TQObject { +class MyCustomTQObjectImp : public TTQObject { Q_OBJECT /** Identifiers for the methods provided by this class. */ enum Mode { On, Off }; Q_PROPERTY(Mode mode READ mode WRITE setMode) - Q_PROPERTY(TQString thing READ thing WRITE setThing) + Q_PROPERTY(TTQString thing READ thing WRITE setThing) Q_ENUMS(Mode) public: - MyCustomQObjectImp( TQObject *parent, const char *name); - virtual ~MyCustomQObjectImp(); + MyCustomTQObjectImp( TTQObject *parent, const char *name); + virtual ~MyCustomTQObjectImp(); public slots: Mode mode() const; void setMode( Mode md); - TQString thing() const; - void setThing( const TQString &t); + TTQString thing() const; + void setThing( const TTQString &t); private: Mode m_mode; - TQString m_thing; + TTQString m_thing; }; -- cgit v1.2.1