From ee2d174543bafc6a015be07b29785d41a20b0db9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 20:42:29 +0900 Subject: [PATCH] Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- konversation/src/chatwindow.cpp | 2 +- konversation/src/ircinput.cpp | 2 +- konversation/src/logfilereader.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/konversation/src/chatwindow.cpp b/konversation/src/chatwindow.cpp index 9960a49..2538930 100644 --- a/konversation/src/chatwindow.cpp +++ b/konversation/src/chatwindow.cpp @@ -439,7 +439,7 @@ bool ChatWindow::eventFilter(TQObject* watched, TQEvent* e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ke = TQT_TQKEYEVENT(e); + TQKeyEvent* ke = static_cast(e); bool scrollMod = (Preferences::useMultiRowInputBox() ? false : (ke->state() == TQt::ShiftButton)); diff --git a/konversation/src/ircinput.cpp b/konversation/src/ircinput.cpp index 3558d5f..1374e27 100644 --- a/konversation/src/ircinput.cpp +++ b/konversation/src/ircinput.cpp @@ -199,7 +199,7 @@ bool IRCInput::eventFilter(TQObject *object,TQEvent *event) { if (event->type() == TQEvent::KeyPress) { - TQKeyEvent* ke = TQT_TQKEYEVENT(event); + TQKeyEvent* ke = static_cast(event); // Allow tab to be handled naturally by the widget. // Once it runs out of links it goes to the next control. diff --git a/konversation/src/logfilereader.cpp b/konversation/src/logfilereader.cpp index 596c521..79a6941 100644 --- a/konversation/src/logfilereader.cpp +++ b/konversation/src/logfilereader.cpp @@ -82,7 +82,7 @@ bool LogfileReader::eventFilter(TQObject* /* watched */, TQEvent* e) { if (e->type() == TQEvent::KeyPress) { - TQKeyEvent* ke = TQT_TQKEYEVENT(e); + TQKeyEvent* ke = static_cast(e); if (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter) {