summaryrefslogtreecommitdiffstats
path: root/kjsembed/jsobjecteventproxy.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
commite63beeb5bdb82987b1e00bc35178667786fbad48 (patch)
treeab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/jsobjecteventproxy.cpp
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'kjsembed/jsobjecteventproxy.cpp')
-rw-r--r--kjsembed/jsobjecteventproxy.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kjsembed/jsobjecteventproxy.cpp b/kjsembed/jsobjecteventproxy.cpp
index 3ebdee1f..acb2ad10 100644
--- a/kjsembed/jsobjecteventproxy.cpp
+++ b/kjsembed/jsobjecteventproxy.cpp
@@ -34,10 +34,10 @@
namespace KJSEmbed {
// We'll need to increase this if we need to support any custom events
-static const TTQEvent::Type TQEVENT_TYPE_MAX = TTQEvent::TabletRelease;
+static const TQEvent::Type TQEVENT_TYPE_MAX = TQEvent::TabletRelease;
JSObjectEventProxy::JSObjectEventProxy( JSObjectProxy *parent, const char *name )
- : TTQObject( parent->object(), name ? name : "jsobjecteventproxy" ),
+ : TQObject( 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( TTQEvent::Type t ) const
+bool JSObjectEventProxy::isFiltered( TQEvent::Type t ) const
{
return eventMask.testBit( t );
}
-void JSObjectEventProxy::addFilter( TTQEvent::Type t )
+void JSObjectEventProxy::addFilter( TQEvent::Type t )
{
if ( !refcount )
proxy->object()->installEventFilter( this );
@@ -65,7 +65,7 @@ void JSObjectEventProxy::addFilter( TTQEvent::Type t )
kdDebug(80001) << "JSObjectEventProxy::addFilter done" << endl;
}
-void JSObjectEventProxy::removeFilter( TTQEvent::Type t )
+void JSObjectEventProxy::removeFilter( TQEvent::Type t )
{
eventMask.clearBit( t );
refcount--;
@@ -77,7 +77,7 @@ void JSObjectEventProxy::removeFilter( TTQEvent::Type t )
kdDebug(80001) << "JSObjectEventProxy::removeFilter done" << endl;
}
-bool JSObjectEventProxy::eventFilter( TTQObject * /*watched*/, TTQEvent *e )
+bool JSObjectEventProxy::eventFilter( TQObject * /*watched*/, TQEvent *e )
{
if ( isFiltered(e->type()) )
callHandler( e );
@@ -85,7 +85,7 @@ bool JSObjectEventProxy::eventFilter( TTQObject * /*watched*/, TTQEvent *e )
return false;
}
-KJS::Value JSObjectEventProxy::callHandler( TTQEvent *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( TTQEvent *e )
KJS::Object fun = jsobj.get(exec, *id ).toObject( exec );
if ( !fun.implementsCall() ) {
- TTQString 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 );
}