diff options
Diffstat (limited to 'kjsembed/jsobjecteventproxy.cpp')
-rw-r--r-- | kjsembed/jsobjecteventproxy.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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 <qvariant.h> +#include <tqvariant.h> #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 ); } |