summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:42:29 +0900
committerMichele Calgaro <[email protected]>2023-11-30 23:39:16 +0900
commitb44a471af9d005d0c90904810b09898140107da7 (patch)
tree159a6684c7db7e5b49b340dc730969d5f29c04f6
parentae1967dc389de9755a02af181a72944c091f9368 (diff)
downloadkonversation-b44a471af9d005d0c90904810b09898140107da7.tar.gz
konversation-b44a471af9d005d0c90904810b09898140107da7.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit ee2d174543bafc6a015be07b29785d41a20b0db9)
-rw-r--r--konversation/src/chatwindow.cpp2
-rw-r--r--konversation/src/ircinput.cpp2
-rw-r--r--konversation/src/logfilereader.cpp2
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<TQKeyEvent*>(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<TQKeyEvent*>(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<TQKeyEvent*>(e);
if (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter)
{