diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/jseventmapper.cpp | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/jseventmapper.cpp')
-rw-r--r-- | kjsembed/jseventmapper.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kjsembed/jseventmapper.cpp b/kjsembed/jseventmapper.cpp index 062f2c22..000353d3 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, TTQEvent::Type _type ) : + EventType( KJS::Identifier _id, TQEvent::Type _type ) : id(_id), type(_type) {;} const KJS::Identifier id; - const TTQEvent::Type type; + const TQEvent::Type type; }; static EventType events[] = { - EventType(KJS::Identifier("timerEvent"), TTQEvent::Timer), + EventType(KJS::Identifier("timerEvent"), TQEvent::Timer), #ifdef ENABLE_CHILDEVENTS - EventType( KJS::Identifier("childInsertEvent"), TTQEvent::ChildInserted ), - EventType( KJS::Identifier("childRemoveEvent"), TTQEvent::ChildRemoved ), + EventType( KJS::Identifier("childInsertEvent"), TQEvent::ChildInserted ), + EventType( KJS::Identifier("childRemoveEvent"), TQEvent::ChildRemoved ), #endif - 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("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"), TTQEvent::KeyPress ), - EventType( KJS::Identifier("keyReleaseEvent"), TTQEvent::KeyRelease ), + EventType( KJS::Identifier("keyPressEvent"), TQEvent::KeyPress ), + EventType( KJS::Identifier("keyReleaseEvent"), TQEvent::KeyRelease ), - EventType( KJS::Identifier("paintEvent"), TTQEvent::Paint ), + EventType( KJS::Identifier("paintEvent"), TQEvent::Paint ), - EventType( KJS::Identifier("moveEvent"), TTQEvent::Move ), - EventType( KJS::Identifier("resizeEvent"), TTQEvent::Resize ), + EventType( KJS::Identifier("moveEvent"), TQEvent::Move ), + EventType( KJS::Identifier("resizeEvent"), TQEvent::Resize ), - EventType( KJS::Identifier("closeEvent"), TTQEvent::Close ), + EventType( KJS::Identifier("closeEvent"), TQEvent::Close ), - EventType( KJS::Identifier("showEvent"), TTQEvent::Show ), - EventType( KJS::Identifier("hideEvent"), TTQEvent::Hide ), + EventType( KJS::Identifier("showEvent"), TQEvent::Show ), + EventType( KJS::Identifier("hideEvent"), TQEvent::Hide ), - 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("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(), TTQEvent::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 != TTQEvent::None ); + } while( events[i].type != TQEvent::None ); } JSEventMapper::~JSEventMapper() { } -void JSEventMapper::addEvent( const KJS::Identifier &name, TTQEvent::Type t ) +void JSEventMapper::addEvent( const KJS::Identifier &name, TQEvent::Type t ) { handlerToEvent.insert( name.qstring(), (const uint *) t ); eventToHandler.insert( (long) t, &name ); } -TTQEvent::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<TTQEvent::Type>( evt ); + return static_cast<TQEvent::Type>( evt ); } } // namespace KJSEmbed |