summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:42:04 +0900
committerMichele Calgaro <[email protected]>2023-11-30 23:37:58 +0900
commitaa5aa16b54b126dc8299b9b24d6d460c557ad67c (patch)
tree81d35d181ced3519569a88849088b21ed3772aaa /src/common
parentfb9112c9ff4ae8380007e190ce68c8313ef46042 (diff)
downloadpiklab-aa5aa16b54b126dc8299b9b24d6d460c557ad67c.tar.gz
piklab-aa5aa16b54b126dc8299b9b24d6d460c557ad67c.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit cda5b603bcae56e1e6d49ebbcefa6dbe89b8190c)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/gui/hexword_gui.cpp2
-rw-r--r--src/common/gui/list_view.cpp2
2 files changed, 2 insertions, 2 deletions
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<TQKeyEvent*>(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<TQKeyEvent*>(e);
switch (ke->key()) {
case Key_Enter:
case Key_Return: