summaryrefslogtreecommitdiffstats
path: root/kjsembed/jseventmapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/jseventmapper.cpp')
-rw-r--r--kjsembed/jseventmapper.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kjsembed/jseventmapper.cpp b/kjsembed/jseventmapper.cpp
index 000353d3..062f2c22 100644
--- a/kjsembed/jseventmapper.cpp
+++ b/kjsembed/jseventmapper.cpp
@@ -25,46 +25,46 @@ namespace KJSEmbed {
/** Used internally for the event handler table. */
struct EventType
{
- EventType( KJS::Identifier _id, TQEvent::Type _type ) :
+ EventType( KJS::Identifier _id, TTQEvent::Type _type ) :
id(_id), type(_type) {;}
const KJS::Identifier id;
- const TQEvent::Type type;
+ const TTQEvent::Type type;
};
static EventType events[] = {
- EventType(KJS::Identifier("timerEvent"), TQEvent::Timer),
+ EventType(KJS::Identifier("timerEvent"), TTQEvent::Timer),
#ifdef ENABLE_CHILDEVENTS
- EventType( KJS::Identifier("childInsertEvent"), TQEvent::ChildInserted ),
- EventType( KJS::Identifier("childRemoveEvent"), TQEvent::ChildRemoved ),
+ EventType( KJS::Identifier("childInsertEvent"), TTQEvent::ChildInserted ),
+ EventType( KJS::Identifier("childRemoveEvent"), TTQEvent::ChildRemoved ),
#endif
- EventType( KJS::Identifier("mouseReleaseEvent"), TQEvent::MouseButtonRelease ),
- EventType( KJS::Identifier("mouseMoveEvent"), TQEvent::MouseMove ),
- EventType( KJS::Identifier("mouseDoubleClickEvent"), TQEvent::MouseButtonDblClick ),
- EventType( KJS::Identifier("mousePressEvent"), TQEvent::MouseButtonPress ),
+ EventType( KJS::Identifier("mouseReleaseEvent"), TTQEvent::MouseButtonRelease ),
+ EventType( KJS::Identifier("mouseMoveEvent"), TTQEvent::MouseMove ),
+ EventType( KJS::Identifier("mouseDoubleClickEvent"), TTQEvent::MouseButtonDblClick ),
+ EventType( KJS::Identifier("mousePressEvent"), TTQEvent::MouseButtonPress ),
- EventType( KJS::Identifier("keyPressEvent"), TQEvent::KeyPress ),
- EventType( KJS::Identifier("keyReleaseEvent"), TQEvent::KeyRelease ),
+ EventType( KJS::Identifier("keyPressEvent"), TTQEvent::KeyPress ),
+ EventType( KJS::Identifier("keyReleaseEvent"), TTQEvent::KeyRelease ),
- EventType( KJS::Identifier("paintEvent"), TQEvent::Paint ),
+ EventType( KJS::Identifier("paintEvent"), TTQEvent::Paint ),
- EventType( KJS::Identifier("moveEvent"), TQEvent::Move ),
- EventType( KJS::Identifier("resizeEvent"), TQEvent::Resize ),
+ EventType( KJS::Identifier("moveEvent"), TTQEvent::Move ),
+ EventType( KJS::Identifier("resizeEvent"), TTQEvent::Resize ),
- EventType( KJS::Identifier("closeEvent"), TQEvent::Close ),
+ EventType( KJS::Identifier("closeEvent"), TTQEvent::Close ),
- EventType( KJS::Identifier("showEvent"), TQEvent::Show ),
- EventType( KJS::Identifier("hideEvent"), TQEvent::Hide ),
+ EventType( KJS::Identifier("showEvent"), TTQEvent::Show ),
+ EventType( KJS::Identifier("hideEvent"), TTQEvent::Hide ),
- EventType( KJS::Identifier("dragEnterEvent"), TQEvent::DragEnter ),
- EventType( KJS::Identifier("dragMoveEvent"), TQEvent::DragMove ),
- EventType( KJS::Identifier("dragLeaveEvent"), TQEvent::DragLeave ),
- EventType( KJS::Identifier("dragResponseEvent"), TQEvent::DragResponse ),
- EventType( KJS::Identifier("dropEvent"), TQEvent::Drop ),
+ EventType( KJS::Identifier("dragEnterEvent"), TTQEvent::DragEnter ),
+ EventType( KJS::Identifier("dragMoveEvent"), TTQEvent::DragMove ),
+ EventType( KJS::Identifier("dragLeaveEvent"), TTQEvent::DragLeave ),
+ EventType( KJS::Identifier("dragResponseEvent"), TTQEvent::DragResponse ),
+ EventType( KJS::Identifier("dropEvent"), TTQEvent::Drop ),
- EventType( KJS::Identifier(), TQEvent::None )
+ EventType( KJS::Identifier(), TTQEvent::None )
};
JSEventMapper::JSEventMapper()
@@ -73,23 +73,23 @@ JSEventMapper::JSEventMapper()
do {
addEvent( events[i].id, events[i].type );
i++;
- } while( events[i].type != TQEvent::None );
+ } while( events[i].type != TTQEvent::None );
}
JSEventMapper::~JSEventMapper()
{
}
-void JSEventMapper::addEvent( const KJS::Identifier &name, TQEvent::Type t )
+void JSEventMapper::addEvent( const KJS::Identifier &name, TTQEvent::Type t )
{
handlerToEvent.insert( name.qstring(), (const uint *) t );
eventToHandler.insert( (long) t, &name );
}
-TQEvent::Type JSEventMapper::findEventType( const KJS::Identifier &name ) const
+TTQEvent::Type JSEventMapper::findEventType( const KJS::Identifier &name ) const
{
uint evt = (uint)(long)handlerToEvent[ name.qstring() ];
- return static_cast<TQEvent::Type>( evt );
+ return static_cast<TTQEvent::Type>( evt );
}
} // namespace KJSEmbed