summaryrefslogtreecommitdiffstats
path: root/kjsembed/jsobjecteventproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/jsobjecteventproxy.cpp')
-rw-r--r--kjsembed/jsobjecteventproxy.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kjsembed/jsobjecteventproxy.cpp b/kjsembed/jsobjecteventproxy.cpp
index b817b42d..3ebdee1f 100644
--- a/kjsembed/jsobjecteventproxy.cpp
+++ b/kjsembed/jsobjecteventproxy.cpp
@@ -34,11 +34,11 @@
namespace KJSEmbed {
// We'll need to increase this if we need to support any custom events
-static const TQEvent::Type QEVENT_TYPE_MAX = TQEvent::TabletRelease;
+static const TTQEvent::Type TQEVENT_TYPE_MAX = TTQEvent::TabletRelease;
JSObjectEventProxy::JSObjectEventProxy( JSObjectProxy *parent, const char *name )
- : TQObject( parent->object(), name ? name : "jsobjecteventproxy" ),
- proxy( parent ), eventMask( QEVENT_TYPE_MAX ), refcount(0)
+ : TTQObject( parent->object(), name ? name : "jsobjecteventproxy" ),
+ proxy( parent ), eventMask( TQEVENT_TYPE_MAX ), refcount(0)
{
eventMask.fill( false );
}
@@ -47,12 +47,12 @@ JSObjectEventProxy::~JSObjectEventProxy()
{
}
-bool JSObjectEventProxy::isFiltered( TQEvent::Type t ) const
+bool JSObjectEventProxy::isFiltered( TTQEvent::Type t ) const
{
return eventMask.testBit( t );
}
-void JSObjectEventProxy::addFilter( TQEvent::Type t )
+void JSObjectEventProxy::addFilter( TTQEvent::Type t )
{
if ( !refcount )
proxy->object()->installEventFilter( this );
@@ -65,7 +65,7 @@ void JSObjectEventProxy::addFilter( TQEvent::Type t )
kdDebug(80001) << "JSObjectEventProxy::addFilter done" << endl;
}
-void JSObjectEventProxy::removeFilter( TQEvent::Type t )
+void JSObjectEventProxy::removeFilter( TTQEvent::Type t )
{
eventMask.clearBit( t );
refcount--;
@@ -77,7 +77,7 @@ void JSObjectEventProxy::removeFilter( TQEvent::Type t )
kdDebug(80001) << "JSObjectEventProxy::removeFilter done" << endl;
}
-bool JSObjectEventProxy::eventFilter( TQObject * /*watched*/, TQEvent *e )
+bool JSObjectEventProxy::eventFilter( TTQObject * /*watched*/, TTQEvent *e )
{
if ( isFiltered(e->type()) )
callHandler( e );
@@ -85,7 +85,7 @@ bool JSObjectEventProxy::eventFilter( TQObject * /*watched*/, TQEvent *e )
return false;
}
-KJS::Value JSObjectEventProxy::callHandler( TQEvent *e )
+KJS::Value JSObjectEventProxy::callHandler( TTQEvent *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( TQEvent *e )
KJS::Object fun = jsobj.get(exec, *id ).toObject( exec );
if ( !fun.implementsCall() ) {
- TQString msg = i18n( "Bad event handler: Object %1 Identifier %2 Method %3 Type: %4." )
+ TTQString 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 );
}