diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-02 22:49:42 +0900 |
commit | d8d8319b3dddc86303699f242be2f1a36206da8e (patch) | |
tree | 4d8df38004b23ec50344a7126746bbb3453994a5 /tdeparts | |
parent | 3a837ecf257dc334d65818d456d5a6bd6a8b98ef (diff) | |
download | tdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.tar.gz tdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f22a9c72dda24871973033123039639af6577eaa)
Diffstat (limited to 'tdeparts')
-rw-r--r-- | tdeparts/partmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeparts/partmanager.cpp b/tdeparts/partmanager.cpp index e380acf5f..140db74e2 100644 --- a/tdeparts/partmanager.cpp +++ b/tdeparts/partmanager.cpp @@ -55,7 +55,7 @@ public: switch( ev->type() ) { case TQEvent::MouseButtonPress: case TQEvent::MouseButtonDblClick: { - TQMouseEvent* mev = TQT_TQMOUSEEVENT( ev ); + TQMouseEvent* mev = static_cast<TQMouseEvent*>( ev ); m_reason = mev->button() == TQt::LeftButton ? PartManager::ReasonLeftClick : ( mev->button() == TQt::MidButton @@ -64,7 +64,7 @@ public: break; } case TQEvent::FocusIn: - m_reason = TQT_TQFOCUSEVENT( ev )->reason(); + m_reason = static_cast<TQFocusEvent*>( ev )->reason(); break; default: kdWarning(1000) << "PartManagerPrivate::setReason got unexpected ev type " << ev->type() << endl; @@ -192,7 +192,7 @@ bool PartManager::eventFilter( TQObject *obj, TQEvent *ev ) TQMouseEvent* mev = 0L; if ( ev->type() == TQEvent::MouseButtonPress || ev->type() == TQEvent::MouseButtonDblClick ) { - mev = TQT_TQMOUSEEVENT( ev ); + mev = static_cast<TQMouseEvent*>( ev ); #ifdef DEBUG_PARTMANAGER kdDebug(1000) << "PartManager::eventFilter button: " << mev->button() << " " << "d->m_activationButtonMask=" << d->m_activationButtonMask << endl; #endif |