summaryrefslogtreecommitdiffstats
path: root/tdeparts
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:30:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:30:52 +0900
commitf22a9c72dda24871973033123039639af6577eaa (patch)
tree3e9e1aa31f39f5945b92282e7d14a0c88a0ebcbf /tdeparts
parent7a00e005dd5806a1056488e3a1199bf382a42623 (diff)
downloadtdelibs-f22a9c72dda24871973033123039639af6577eaa.tar.gz
tdelibs-f22a9c72dda24871973033123039639af6577eaa.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeparts')
-rw-r--r--tdeparts/partmanager.cpp6
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