diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/jsopaqueproxy.cpp | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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) ); } |