summaryrefslogtreecommitdiffstats
path: root/konsole
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 21:30:28 +0900
committerMichele Calgaro <[email protected]>2023-12-02 22:50:02 +0900
commitb19e4cab8888a6f486ebdb7242ea5f65435cb68c (patch)
treeb23c2cdc474711742f76fa71df81896c3f421c94 /konsole
parent6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec (diff)
downloadtdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.tar.gz
tdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43)
Diffstat (limited to 'konsole')
-rw-r--r--konsole/konsole/TEWidget.cpp10
-rw-r--r--konsole/konsole/konsole.cpp6
2 files changed, 8 insertions, 8 deletions
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<TQKeyEvent*>( 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<TQKeyEvent*>(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<TQKeyEvent*>(e);
emit keyReleasedSignal(ke);
return true;
}
if ( e->type() == TQEvent::FocusIn )
{
- TQFocusEvent *fe = TQT_TQFOCUSEVENT(e);
+ TQFocusEvent *fe = static_cast<TQFocusEvent*>(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<TQKeyEvent*>( 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<TQMouseEvent*>(ev);
m_newSessionButtonMousePressPos = mev->pos();
}
else if (ev->type() == TQEvent::MouseMove)
{
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(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<TQMouseEvent*>(ev);
slotTabbarContextMenu(mev->globalPos());
return true;
}