diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/jsopaqueproxy.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
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 5abd9558..ad38efe1 100644 --- a/kjsembed/jsopaqueproxy.cpp +++ b/kjsembed/jsopaqueproxy.cpp @@ -43,13 +43,13 @@ JSOpaqueProxy::JSOpaqueProxy() { } -JSOpaqueProxy::JSOpaqueProxy( TQTextStream *ts ) +JSOpaqueProxy::JSOpaqueProxy( TTQTextStream *ts ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ts ); } -JSOpaqueProxy::JSOpaqueProxy( const TQEvent *ev ) +JSOpaqueProxy::JSOpaqueProxy( const TTQEvent *ev ) : JSProxy( JSProxy::OpaqueProxy ), ptr(0) { setValue( ev ); @@ -66,7 +66,7 @@ JSOpaqueProxy::~JSOpaqueProxy() } } -TQString JSOpaqueProxy::typeName() const +TTQString JSOpaqueProxy::typeName() const { return ptrtype; } @@ -76,34 +76,34 @@ bool JSOpaqueProxy::inherits( const char *clazz ) return (ptrtype == clazz); } -void JSOpaqueProxy::setValue( TQTextStream *ts ) +void JSOpaqueProxy::setValue( TTQTextStream *ts ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<TQTextStream>(ts); - ptrtype = "TQTextStream"; + ptr = new Pointer<TTQTextStream>(ts); + ptrtype = "TTQTextStream"; } -void JSOpaqueProxy::setValue( const TQEvent *ev ) +void JSOpaqueProxy::setValue( const TTQEvent *ev ) { if( ptr ) { if(owner() == JavaScript) ptr->cleanup(); delete ptr; } - ptr = new Pointer<const TQEvent>(ev); - ptrtype = "TQEvent"; + ptr = new Pointer<const TTQEvent>(ev); + ptrtype = "TTQEvent"; } -TQTextStream *JSOpaqueProxy::toTextStream() +TTQTextStream *JSOpaqueProxy::toTextStream() { - return toNative<TQTextStream>(); + return toNative<TTQTextStream>(); } -const TQEvent *JSOpaqueProxy::toEvent() +const TTQEvent *JSOpaqueProxy::toEvent() { - return toNative<TQEvent>(); + return toNative<TTQEvent>(); } 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 { - TQString s( "%1 (%2)" ); + TTQString s( "%1 (%2)" ); return KJS::UString( s.arg("JSOpaqueProxy").arg(ptrtype) ); } |