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