summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:42:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:42:29 +0900
commitee2d174543bafc6a015be07b29785d41a20b0db9 (patch)
tree159a6684c7db7e5b49b340dc730969d5f29c04f6
parent24425224ab03e5fe53999770b9eec24e46dd1d12 (diff)
downloadkonversation-ee2d174543bafc6a015be07b29785d41a20b0db9.tar.gz
konversation-ee2d174543bafc6a015be07b29785d41a20b0db9.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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)
{