summaryrefslogtreecommitdiffstats
path: root/kjsembed/jseventutils.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/jseventutils.cpp
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'kjsembed/jseventutils.cpp')
-rw-r--r--kjsembed/jseventutils.cpp102
1 files changed, 51 insertions, 51 deletions
diff --git a/kjsembed/jseventutils.cpp b/kjsembed/jseventutils.cpp
index 2aabf762..4c5bbd13 100644
--- a/kjsembed/jseventutils.cpp
+++ b/kjsembed/jseventutils.cpp
@@ -33,15 +33,15 @@ JSFactory *JSEventUtils::factory( const JSObjectProxy *prx )
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQMouseEvent *ev, const JSObjectProxy *context )
+ const TQMouseEvent *ev, const JSObjectProxy *context )
{
- KJS::Object mev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object mev = convertEvent( exec, (TQEvent *)ev, context);
- mev.put( exec, "pos", convertToValue( exec, TTQVariant(ev->pos()) ) );
+ mev.put( exec, "pos", convertToValue( exec, TQVariant(ev->pos()) ) );
mev.put( exec, "x", KJS::Number(ev->x()) );
mev.put( exec, "y", KJS::Number(ev->y()) );
- mev.put( exec, "globalPos", convertToValue( exec, TTQVariant(ev->globalPos()) ) );
+ mev.put( exec, "globalPos", convertToValue( exec, TQVariant(ev->globalPos()) ) );
mev.put( exec, "globalX", KJS::Number(ev->globalX()) );
mev.put( exec, "globalY", KJS::Number(ev->globalY()) );
@@ -53,19 +53,19 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQPaintEvent *ev, const JSObjectProxy *context )
+ const TQPaintEvent *ev, const JSObjectProxy *context )
{
- KJS::Object pev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object pev = convertEvent( exec, (TQEvent *)ev, context);
- pev.put( exec, "rect", convertToValue( exec, TTQVariant(ev->rect()) ) );
- pev.put( exec, "erased", convertToValue( exec, TTQVariant(ev->erased()) ) );
+ pev.put( exec, "rect", convertToValue( exec, TQVariant(ev->rect()) ) );
+ pev.put( exec, "erased", convertToValue( exec, TQVariant(ev->erased()) ) );
return pev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQKeyEvent *ev, const JSObjectProxy *context )
+ const TQKeyEvent *ev, const JSObjectProxy *context )
{
- KJS::Object kev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object kev = convertEvent( exec, (TQEvent *)ev, context);
kev.put( exec, "key", KJS::Number(ev->key()) );
kev.put( exec, "ascii", KJS::Number(ev->ascii()) );
@@ -75,37 +75,37 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
kev.put( exec, "text", KJS::String(ev->text()));
kev.put( exec, "isAutoRepeat", KJS::Boolean(ev->isAutoRepeat()) );
kev.put( exec, "count", KJS::Number( ev->count()) );
- //kev.put( exec, "accept", KJS::Void( exec, TTQVariant(ev->accept()), context ) );
- //kev.put( exec, "ignore", KJS::Void( exec, TTQVariant(ev->ignore()), context ) );
+ //kev.put( exec, "accept", KJS::Void( exec, TQVariant(ev->accept()), context ) );
+ //kev.put( exec, "ignore", KJS::Void( exec, TQVariant(ev->ignore()), context ) );
return kev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQIMEvent *ev, const JSObjectProxy *context )
+ const TQIMEvent *ev, const JSObjectProxy *context )
{
- KJS::Object qev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object qev = convertEvent( exec, (TQEvent *)ev, context);
qev.put( exec, "text", KJS::String(ev->text()) );
qev.put( exec, "cursorPos", KJS::Number(ev->cursorPos()) );
qev.put( exec, "isAccepted", KJS::Boolean(ev->isAccepted()) );
- //qev.put( exec, "accept", KJS::Void( exec, TTQVariant(ev->accept()), context ) );
- //qev.put( exec, "ignore", KJS::Void( exec, TTQVariant(ev->ignore()), context ) );
+ //qev.put( exec, "accept", KJS::Void( exec, TQVariant(ev->accept()), context ) );
+ //qev.put( exec, "ignore", KJS::Void( exec, TQVariant(ev->ignore()), context ) );
return qev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQResizeEvent *ev, const JSObjectProxy *context )
+ const TQResizeEvent *ev, const JSObjectProxy *context )
{
- KJS::Object rev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object rev = convertEvent( exec, (TQEvent *)ev, context);
- rev.put( exec, "size", convertToValue( exec, TTQVariant(ev->size()) ));
- rev.put( exec, "oldSize", convertToValue( exec, TTQVariant(ev->oldSize()) ));
+ rev.put( exec, "size", convertToValue( exec, TQVariant(ev->size()) ));
+ rev.put( exec, "oldSize", convertToValue( exec, TQVariant(ev->oldSize()) ));
return rev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQFocusEvent *ev, const JSObjectProxy *context )
+ const TQFocusEvent *ev, const JSObjectProxy *context )
{
- KJS::Object fev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object fev = convertEvent( exec, (TQEvent *)ev, context);
fev.put( exec, "gotFocus", KJS::Boolean(ev->gotFocus()) );
fev.put( exec, "lostFocus", KJS::Boolean(ev->lostFocus()) );
@@ -113,21 +113,21 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQCloseEvent *ev, const JSObjectProxy *context )
+ const TQCloseEvent *ev, const JSObjectProxy *context )
{
- KJS::Object cev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object cev = convertEvent( exec, (TQEvent *)ev, context);
cev.put( exec, "isAccepted", KJS::Boolean(ev->isAccepted()) );
- //cev.put( exec, "accept", KJS::Void( exec, TTQVariant(ev->accept()), context ) );
- //cev.put( exec, "ignore", KJS::Void( exec, TTQVariant(ev->ignore()), context ) );
+ //cev.put( exec, "accept", KJS::Void( exec, TQVariant(ev->accept()), context ) );
+ //cev.put( exec, "ignore", KJS::Void( exec, TQVariant(ev->ignore()), context ) );
return cev;
}
#ifdef ENABLE_CHILDEVENTS
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQChildEvent *ev, const JSObjectProxy *context )
+ const TQChildEvent *ev, const JSObjectProxy *context )
{
- KJS::Object cev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object cev = convertEvent( exec, (TQEvent *)ev, context);
cev.put( exec, "inserted", KJS::Boolean(ev->inserted()) );
cev.put( exec, "removed", KJS::Boolean(ev->removed()) );
@@ -138,23 +138,23 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
#endif
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQMoveEvent *ev, const JSObjectProxy *context )
+ const TQMoveEvent *ev, const JSObjectProxy *context )
{
- KJS::Object mev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object mev = convertEvent( exec, (TQEvent *)ev, context);
- mev.put( exec, "pos", convertToValue( exec, TTQVariant(ev->pos()) ));
- mev.put( exec, "oldPos", convertToValue( exec, TTQVariant(ev->oldPos()) ));
+ mev.put( exec, "pos", convertToValue( exec, TQVariant(ev->pos()) ));
+ mev.put( exec, "oldPos", convertToValue( exec, TQVariant(ev->oldPos()) ));
return mev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQWheelEvent *ev, const JSObjectProxy *context )
+ const TQWheelEvent *ev, const JSObjectProxy *context )
{
- KJS::Object wev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object wev = convertEvent( exec, (TQEvent *)ev, context);
wev.put( exec, "delta", KJS::Number(ev->delta()) );
- wev.put( exec, "pos", convertToValue( exec, TTQVariant(ev->pos()) ) );
- wev.put( exec, "globalPos", convertToValue( exec, TTQVariant(ev->globalPos()) ) );
+ wev.put( exec, "pos", convertToValue( exec, TQVariant(ev->pos()) ) );
+ wev.put( exec, "globalPos", convertToValue( exec, TQVariant(ev->globalPos()) ) );
wev.put( exec, "x", KJS::Number(ev->x()) );
wev.put( exec, "y", KJS::Number(ev->y()) );
wev.put( exec, "globalX", KJS::Number(ev->globalX()) );
@@ -163,13 +163,13 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
wev.put( exec, "state", KJS::Number(ev->state()) );
wev.put( exec, "orientation", KJS::Number(ev->orientation()) );
wev.put( exec, "isAccepted", KJS::Boolean(ev->isAccepted()) );
- //wev.put( exec, "accept", KJS::Void( exec, TTQVariant(ev->accept()), context ) );
- //wev.put( exec, "ignore", KJS::Void( exec, TTQVariant(ev->ignore()), context ) );
+ //wev.put( exec, "accept", KJS::Void( exec, TQVariant(ev->accept()), context ) );
+ //wev.put( exec, "ignore", KJS::Void( exec, TQVariant(ev->ignore()), context ) );
return wev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQEvent *ev, const JSObjectProxy * /*context*/)
+ const TQEvent *ev, const JSObjectProxy * /*context*/)
{
KJS::Object evnt( new JSOpaqueProxy(ev) );
evnt.put( exec, "type", KJS::Number( (int) ev->type()) );
@@ -177,10 +177,10 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
return evnt;
}
-KJS::Object JSEventUtils::convertEvent( KJS::ExecState * exec, const TTQDropEvent * ev, const JSObjectProxy * context )
+KJS::Object JSEventUtils::convertEvent( KJS::ExecState * exec, const TQDropEvent * ev, const JSObjectProxy * context )
{
- KJS::Object dev = convertEvent( exec, (TTQEvent *)ev, context);
- dev.put( exec, "pos", convertToValue( exec, TTQVariant(ev->pos()) ) );
+ KJS::Object dev = convertEvent( exec, (TQEvent *)ev, context);
+ dev.put( exec, "pos", convertToValue( exec, TQVariant(ev->pos()) ) );
dev.put( exec, "isAccepted", KJS::Boolean(ev->isAccepted()) );
dev.put( exec, "isActionAccepted", KJS::Boolean(ev->isActionAccepted()) );
dev.put( exec, "source", factory(context)->createProxy(exec, ev->source(), context) );
@@ -189,31 +189,31 @@ KJS::Object JSEventUtils::convertEvent( KJS::ExecState * exec, const TTQDropEven
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQDragMoveEvent *ev, const JSObjectProxy *context )
+ const TQDragMoveEvent *ev, const JSObjectProxy *context )
{
- KJS::Object mev = convertEvent(exec, (TTQDropEvent *)ev, context);
- mev.put( exec, "answerRect", convertToValue( exec, TTQVariant(ev->answerRect()) ) );
+ KJS::Object mev = convertEvent(exec, (TQDropEvent *)ev, context);
+ mev.put( exec, "answerRect", convertToValue( exec, TQVariant(ev->answerRect()) ) );
return mev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQTimerEvent *ev, const JSObjectProxy *context )
+ const TQTimerEvent *ev, const JSObjectProxy *context )
{
- KJS::Object dev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object dev = convertEvent( exec, (TQEvent *)ev, context);
dev.put( exec, "timerId", KJS::Number(ev->timerId()) );
return dev;
}
KJS::Object JSEventUtils::convertEvent( KJS::ExecState *exec,
- const TTQContextMenuEvent *ev, const JSObjectProxy *context )
+ const TQContextMenuEvent *ev, const JSObjectProxy *context )
{
- KJS::Object cxev = convertEvent( exec, (TTQEvent *)ev, context);
+ KJS::Object cxev = convertEvent( exec, (TQEvent *)ev, context);
cxev.put( exec, "x", KJS::Number(ev->x()) );
cxev.put( exec, "y", KJS::Number(ev->y()) );
cxev.put( exec, "globalX", KJS::Number(ev->globalX()) );
cxev.put( exec, "globalY", KJS::Number(ev->globalY()) );
- cxev.put( exec, "pos",convertToValue( exec, TTQVariant(ev->pos()) ) );
- cxev.put( exec, "globalPos", convertToValue( exec, TTQVariant(ev->globalPos()) ) );
+ cxev.put( exec, "pos",convertToValue( exec, TQVariant(ev->pos()) ) );
+ cxev.put( exec, "globalPos", convertToValue( exec, TQVariant(ev->globalPos()) ) );
cxev.put( exec, "state", KJS::Number( (int) ev->state()) );
cxev.put( exec, "isAccepted", KJS::Boolean(ev->isAccepted()) );
cxev.put( exec, "isConsumed", KJS::Boolean(ev->isConsumed()) );