From 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 21:30:28 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- konsole/konsole/TEWidget.cpp | 10 +++++----- konsole/konsole/konsole.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'konsole') diff --git a/konsole/konsole/TEWidget.cpp b/konsole/konsole/TEWidget.cpp index e04c9fa4a..f18278801 100644 --- a/konsole/konsole/TEWidget.cpp +++ b/konsole/konsole/TEWidget.cpp @@ -1931,14 +1931,14 @@ bool TEWidget::eventFilter( TQObject *obj, TQEvent *e ) if ( (e->type() == TQEvent::Accel || e->type() == TQEvent::AccelAvailable ) && tqApp->focusWidget() == this ) { - TQT_TQKEYEVENT( e )->ignore(); + static_cast( e )->ignore(); return false; } if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) return false; // not us if ( e->type() == TQEvent::KeyPress ) { - TQKeyEvent *ke = TQT_TQKEYEVENT(e); + TQKeyEvent *ke = static_cast(e); actSel=0; // Key stroke implies a screen update, so TEWidget won't // know where the current selection is. @@ -1956,13 +1956,13 @@ bool TEWidget::eventFilter( TQObject *obj, TQEvent *e ) } if ( e->type() == TQEvent::KeyRelease ) { - TQKeyEvent *ke = TQT_TQKEYEVENT(e); + TQKeyEvent *ke = static_cast(e); emit keyReleasedSignal(ke); return true; } if ( e->type() == TQEvent::FocusIn ) { - TQFocusEvent *fe = TQT_TQFOCUSEVENT(e); + TQFocusEvent *fe = static_cast(e); if (fe->gotFocus()) { emit focusInSignal(fe); @@ -2050,7 +2050,7 @@ bool TEWidget::event( TQEvent *e ) { if ( e->type() == TQEvent::AccelOverride ) { - TQKeyEvent *ke = TQT_TQKEYEVENT( e ); + TQKeyEvent *ke = static_cast( e ); KKey key( ke ); int keyCodeQt = key.keyCodeQt(); diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index d41f30181..7ff81454c 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -991,12 +991,12 @@ bool Konsole::eventFilter( TQObject *o, TQEvent *ev ) // is moved by a small distance. if (ev->type() == TQEvent::MouseButtonPress) { - TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); + TQMouseEvent* mev = static_cast(ev); m_newSessionButtonMousePressPos = mev->pos(); } else if (ev->type() == TQEvent::MouseMove) { - TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); + TQMouseEvent* mev = static_cast(ev); if ((mev->pos() - m_newSessionButtonMousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay()) { @@ -1006,7 +1006,7 @@ bool Konsole::eventFilter( TQObject *o, TQEvent *ev ) } else if (ev->type() == TQEvent::ContextMenu) { - TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); + TQMouseEvent* mev = static_cast(ev); slotTabbarContextMenu(mev->globalPos()); return true; } -- cgit v1.2.1