From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- kjsembed/jsopaqueproxy.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kjsembed/jsopaqueproxy.cpp') 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(ts); - ptrtype = "TTQTextStream"; + ptr = new Pointer(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(ev); - ptrtype = "TTQEvent"; + ptr = new Pointer(ev); + ptrtype = "TQEvent"; } -TTQTextStream *JSOpaqueProxy::toTextStream() +TQTextStream *JSOpaqueProxy::toTextStream() { - return toNative(); + return toNative(); } -const TTQEvent *JSOpaqueProxy::toEvent() +const TQEvent *JSOpaqueProxy::toEvent() { - return toNative(); + return toNative(); } 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) ); } -- cgit v1.2.3