From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:44:01 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/jsobjecteventproxy.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kjsembed/jsobjecteventproxy.cpp') diff --git a/kjsembed/jsobjecteventproxy.cpp b/kjsembed/jsobjecteventproxy.cpp index ad29608f..b817b42d 100644 --- a/kjsembed/jsobjecteventproxy.cpp +++ b/kjsembed/jsobjecteventproxy.cpp @@ -17,7 +17,7 @@ * Boston, MA 02110-1301, USA. */ -#include +#include #include "global.h" #include "jsfactory.h" @@ -34,10 +34,10 @@ namespace KJSEmbed { // We'll need to increase this if we need to support any custom events -static const QEvent::Type QEVENT_TYPE_MAX = QEvent::TabletRelease; +static const TQEvent::Type QEVENT_TYPE_MAX = TQEvent::TabletRelease; JSObjectEventProxy::JSObjectEventProxy( JSObjectProxy *parent, const char *name ) - : QObject( parent->object(), name ? name : "jsobjecteventproxy" ), + : TQObject( parent->object(), name ? name : "jsobjecteventproxy" ), proxy( parent ), eventMask( QEVENT_TYPE_MAX ), refcount(0) { eventMask.fill( false ); @@ -47,12 +47,12 @@ JSObjectEventProxy::~JSObjectEventProxy() { } -bool JSObjectEventProxy::isFiltered( QEvent::Type t ) const +bool JSObjectEventProxy::isFiltered( TQEvent::Type t ) const { return eventMask.testBit( t ); } -void JSObjectEventProxy::addFilter( QEvent::Type t ) +void JSObjectEventProxy::addFilter( TQEvent::Type t ) { if ( !refcount ) proxy->object()->installEventFilter( this ); @@ -65,7 +65,7 @@ void JSObjectEventProxy::addFilter( QEvent::Type t ) kdDebug(80001) << "JSObjectEventProxy::addFilter done" << endl; } -void JSObjectEventProxy::removeFilter( QEvent::Type t ) +void JSObjectEventProxy::removeFilter( TQEvent::Type t ) { eventMask.clearBit( t ); refcount--; @@ -77,7 +77,7 @@ void JSObjectEventProxy::removeFilter( QEvent::Type t ) kdDebug(80001) << "JSObjectEventProxy::removeFilter done" << endl; } -bool JSObjectEventProxy::eventFilter( QObject * /*watched*/, QEvent *e ) +bool JSObjectEventProxy::eventFilter( TQObject * /*watched*/, TQEvent *e ) { if ( isFiltered(e->type()) ) callHandler( e ); @@ -85,7 +85,7 @@ bool JSObjectEventProxy::eventFilter( QObject * /*watched*/, QEvent *e ) return false; } -KJS::Value JSObjectEventProxy::callHandler( QEvent *e ) +KJS::Value JSObjectEventProxy::callHandler( TQEvent *e ) { // Be careful enabling this as if there are a lot of events then the event loop times // out and the app crashes with 'Alarm Clock'. @@ -98,7 +98,7 @@ KJS::Value JSObjectEventProxy::callHandler( QEvent *e ) KJS::Object fun = jsobj.get(exec, *id ).toObject( exec ); if ( !fun.implementsCall() ) { - QString msg = i18n( "Bad event handler: Object %1 Identifier %2 Method %3 Type: %4." ) + TQString msg = i18n( "Bad event handler: Object %1 Identifier %2 Method %3 Type: %4." ) .arg(jsobj.className().ascii()).arg(id->ascii()).arg(fun.className().ascii()).arg(e->type()); return throwError(exec, msg, KJS::TypeError ); } -- cgit v1.2.1