summaryrefslogtreecommitdiffstats
path: root/kmail
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:31:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:44:36 +0900
commitef173e633b7d068c4ddd2209af41899ec44e47ce (patch)
tree38bc5f0ecada6b57254866a3ae660a0bacccb0b7 /kmail
parent1d421717fba9b8ea1ca121a58e1023b8a6a8871b (diff)
downloadtdepim-ef173e633b7d068c4ddd2209af41899ec44e47ce.tar.gz
tdepim-ef173e633b7d068c4ddd2209af41899ec44e47ce.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmail')
-rw-r--r--kmail/kmcomposewin.cpp2
-rw-r--r--kmail/kmedit.cpp2
-rw-r--r--kmail/kmfoldertree.cpp4
-rw-r--r--kmail/kmheaders.cpp4
-rw-r--r--kmail/kmreaderwin.cpp4
5 files changed, 8 insertions, 8 deletions
diff --git a/kmail/kmcomposewin.cpp b/kmail/kmcomposewin.cpp
index 473d454f8..7e02e403a 100644
--- a/kmail/kmcomposewin.cpp
+++ b/kmail/kmcomposewin.cpp
@@ -3830,7 +3830,7 @@ void KMComposeWin::slotCopy()
#endif
TQKeyEvent k(TQEvent::KeyPress, Key_C, 0, ControlButton);
- kapp->notify(TQT_TQOBJECT(fw), TQT_TQEVENT(&k));
+ kapp->notify(fw, &k);
}
diff --git a/kmail/kmedit.cpp b/kmail/kmedit.cpp
index 1d01782dc..960eb4556 100644
--- a/kmail/kmedit.cpp
+++ b/kmail/kmedit.cpp
@@ -569,7 +569,7 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e)
}
}
} else if ( e->type() == TQEvent::FocusIn || e->type() == TQEvent::FocusOut ) {
- TQFocusEvent *fe = TQT_TQFOCUSEVENT(e);
+ TQFocusEvent *fe = static_cast<TQFocusEvent*>(e);
if(! (fe->reason() == TQFocusEvent::ActiveWindow || fe->reason() == TQFocusEvent::Popup) )
emit focusChanged( fe->gotFocus() );
}
diff --git a/kmail/kmfoldertree.cpp b/kmail/kmfoldertree.cpp
index 21a2eb0f7..312f4febb 100644
--- a/kmail/kmfoldertree.cpp
+++ b/kmail/kmfoldertree.cpp
@@ -1753,10 +1753,10 @@ void KMFolderTree::slotToggleSizeColumn()
bool KMFolderTree::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::MouseButtonPress &&
- TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
+ static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton &&
o->isA("TQHeader") )
{
- mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() );
+ mPopup->popup( static_cast<TQMouseEvent*>(e)->globalPos() );
return true;
}
return KFolderTree::eventFilter(o, e);
diff --git a/kmail/kmheaders.cpp b/kmail/kmheaders.cpp
index 66231ae26..eaf045b46 100644
--- a/kmail/kmheaders.cpp
+++ b/kmail/kmheaders.cpp
@@ -235,7 +235,7 @@ KMHeaders::~KMHeaders ()
bool KMHeaders::eventFilter ( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::MouseButtonPress &&
- TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
+ static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton &&
o->isA("TQHeader") )
{
// if we currently only show one of either sender/receiver column
@@ -248,7 +248,7 @@ bool KMHeaders::eventFilter ( TQObject *o, TQEvent *e )
else
mPopup->changeItem(KPaintInfo::COL_RECEIVER, i18n("Receiver"));
- mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() );
+ mPopup->popup( static_cast<TQMouseEvent*>(e)->globalPos() );
return true;
}
return TDEListView::eventFilter(o, e);
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp
index 1e4eab6da..014864961 100644
--- a/kmail/kmreaderwin.cpp
+++ b/kmail/kmreaderwin.cpp
@@ -2754,7 +2754,7 @@ static TQString linkForNode( const DOM::Node &node )
bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
{
if ( e->type() == TQEvent::MouseButtonPress ) {
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if ( me->button() == TQt::LeftButton && ( me->state() & ShiftButton ) ) {
// special processing for shift+click
URLHandlerManager::instance()->handleShiftClick( mHoveredUrl, this );
@@ -2786,7 +2786,7 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
}
if ( e->type() == TQEvent::MouseMove ) {
- TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* me = static_cast<TQMouseEvent*>( e );
// Handle this ourselves instead of connecting to mViewer::onURL(), since TDEHTML misses some
// notifications in case we started a drag ourselves