diff options
Diffstat (limited to 'kjsembed/jsopaqueproxy.cpp')
-rw-r--r-- | kjsembed/jsopaqueproxy.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kjsembed/jsopaqueproxy.cpp b/kjsembed/jsopaqueproxy.cpp index c5c2600d..5abd9558 100644 --- a/kjsembed/jsopaqueproxy.cpp +++ b/kjsembed/jsopaqueproxy.cpp @@ -17,8 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#include <qevent.h> -#include <qtextstream.h> +#include <tqevent.h> +#include <tqtextstream.h> #include "global.h" @@ -43,13 +43,13 @@ JSOpaqueProxy::JSOpaqueProxy() { } -JSOpaqueProxy::JSOpaqueProxy( QTextStream *ts ) +JSOpaqueProxy::JSOpaqueProxy( TQTextStream *ts ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ts ); } -JSOpaqueProxy::JSOpaqueProxy( const QEvent *ev ) +JSOpaqueProxy::JSOpaqueProxy( const TQEvent *ev ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ev ); @@ -66,7 +66,7 @@ JSOpaqueProxy::~JSOpaqueProxy() } } -QString 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( QTextStream *ts ) +void JSOpaqueProxy::setValue( TQTextStream *ts ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<QTextStream>(ts); - ptrtype = "QTextStream"; + ptr = new Pointer<TQTextStream>(ts); + ptrtype = "TQTextStream"; } -void JSOpaqueProxy::setValue( const QEvent *ev ) +void JSOpaqueProxy::setValue( const TQEvent *ev ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<const QEvent>(ev); - ptrtype = "QEvent"; + ptr = new Pointer<const TQEvent>(ev); + ptrtype = "TQEvent"; } -QTextStream *JSOpaqueProxy::toTextStream() +TQTextStream *JSOpaqueProxy::toTextStream() { - return toNative<QTextStream>(); + return toNative<TQTextStream>(); } -const QEvent *JSOpaqueProxy::toEvent() +const TQEvent *JSOpaqueProxy::toEvent() { - return toNative<QEvent>(); + 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 { - QString s( "%1 (%2)" ); + TQString s( "%1 (%2)" ); return KJS::UString( s.arg("JSOpaqueProxy").arg(ptrtype) ); } |