diff options
Diffstat (limited to 'kjsembed/jsopaqueproxy.cpp')
-rw-r--r-- | kjsembed/jsopaqueproxy.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/jsopaqueproxy.cpp b/kjsembed/jsopaqueproxy.cpp index ad38efe1..5abd9558 100644 --- a/kjsembed/jsopaqueproxy.cpp +++ b/kjsembed/jsopaqueproxy.cpp @@ -43,13 +43,13 @@ JSOpaqueProxy::JSOpaqueProxy() { } -JSOpaqueProxy::JSOpaqueProxy( TTQTextStream *ts ) +JSOpaqueProxy::JSOpaqueProxy( TQTextStream *ts ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ts ); } -JSOpaqueProxy::JSOpaqueProxy( const TTQEvent *ev ) +JSOpaqueProxy::JSOpaqueProxy( const TQEvent *ev ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ev ); @@ -66,7 +66,7 @@ JSOpaqueProxy::~JSOpaqueProxy() } } -TTQString JSOpaqueProxy::typeName() const +TQString JSOpaqueProxy::typeName() const { return ptrtype; } @@ -76,34 +76,34 @@ bool JSOpaqueProxy::inherits( const char *clazz ) return (ptrtype == clazz); } -void JSOpaqueProxy::setValue( TTQTextStream *ts ) +void JSOpaqueProxy::setValue( TQTextStream *ts ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<TTQTextStream>(ts); - ptrtype = "TTQTextStream"; + ptr = new Pointer<TQTextStream>(ts); + ptrtype = "TQTextStream"; } -void JSOpaqueProxy::setValue( const TTQEvent *ev ) +void JSOpaqueProxy::setValue( const TQEvent *ev ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<const TTQEvent>(ev); - ptrtype = "TTQEvent"; + ptr = new Pointer<const TQEvent>(ev); + ptrtype = "TQEvent"; } -TTQTextStream *JSOpaqueProxy::toTextStream() +TQTextStream *JSOpaqueProxy::toTextStream() { - return toNative<TTQTextStream>(); + return toNative<TQTextStream>(); } -const TTQEvent *JSOpaqueProxy::toEvent() +const TQEvent *JSOpaqueProxy::toEvent() { - return toNative<TTQEvent>(); + return toNative<TQEvent>(); } void JSOpaqueProxy::addBindings( KJS::ExecState *exec, KJS::Object &object ) @@ -124,7 +124,7 @@ void JSOpaqueProxy::addBindings( KJS::ExecState *exec, KJS::Object &object ) KJS::UString JSOpaqueProxy::toString( KJS::ExecState */*exec*/ ) const { - TTQString s( "%1 (%2)" ); + TQString s( "%1 (%2)" ); return KJS::UString( s.arg("JSOpaqueProxy").arg(ptrtype) ); } |