From aa5aa16b54b126dc8299b9b24d6d460c557ad67c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 20:42:04 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro (cherry picked from commit cda5b603bcae56e1e6d49ebbcefa6dbe89b8190c) --- src/common/gui/hexword_gui.cpp | 2 +- src/common/gui/list_view.cpp | 2 +- src/libgui/text_editor.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/gui/hexword_gui.cpp b/src/common/gui/hexword_gui.cpp index d6ee42f..9a2a8ea 100644 --- a/src/common/gui/hexword_gui.cpp +++ b/src/common/gui/hexword_gui.cpp @@ -84,7 +84,7 @@ bool GenericHexWordEditor::event(TQEvent *e) TQTimer::singleShot(0, this, TQT_SLOT(selectAll())); // ugly but it works break; case TQEvent::KeyPress: - switch ( TQT_TQKEYEVENT(e)->key() ) { + switch ( static_cast(e)->key() ) { case Key_Next: emit moveNextPage(); return true; diff --git a/src/common/gui/list_view.cpp b/src/common/gui/list_view.cpp index 97e6b16..8fbeee2 100644 --- a/src/common/gui/list_view.cpp +++ b/src/common/gui/list_view.cpp @@ -49,7 +49,7 @@ bool ListView::eventFilter(TQObject *o, TQEvent *e) //tqDebug("event %i", e->type()); switch (e->type()) { case TQEvent::KeyPress: { - TQKeyEvent *ke = TQT_TQKEYEVENT(e); + TQKeyEvent *ke = static_cast(e); switch (ke->key()) { case Key_Enter: case Key_Return: diff --git a/src/libgui/text_editor.cpp b/src/libgui/text_editor.cpp index f064ec4..34efcd7 100644 --- a/src/libgui/text_editor.cpp +++ b/src/libgui/text_editor.cpp @@ -83,7 +83,7 @@ void TextEditor::addToDebugManager() bool TextEditor::eventFilter(TQObject *, TQEvent *e) { if ( e->type()==TQEvent::KeyPress ) { - if ( TQT_TQKEYEVENT(e)->key()==Key_Escape ) return true; + if ( static_cast(e)->key()==Key_Escape ) return true; } return false; } -- cgit v1.2.1