diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:31:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-02 22:49:10 +0900 |
commit | ae35bc48cbbe82211fa27f49e2d4f3c8bcdbe0ec (patch) | |
tree | fe7187f6c8ce4a11740c29304086eda5fa4146cf /knode | |
parent | 51d0291b086eede28d1f3b8c1f59affbf4109a99 (diff) | |
download | tdepim-ae35bc48cbbe82211fa27f49e2d4f3c8bcdbe0ec.tar.gz tdepim-ae35bc48cbbe82211fa27f49e2d4f3c8bcdbe0ec.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ef173e633b7d068c4ddd2209af41899ec44e47ce)
Diffstat (limited to 'knode')
-rw-r--r-- | knode/articlewidget.cpp | 2 | ||||
-rw-r--r-- | knode/headerview.cpp | 6 | ||||
-rw-r--r-- | knode/kncollectionview.cpp | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/knode/articlewidget.cpp b/knode/articlewidget.cpp index 73b755141..852707ffa 100644 --- a/knode/articlewidget.cpp +++ b/knode/articlewidget.cpp @@ -1472,7 +1472,7 @@ void ArticleWidget::focusOutEvent( TQFocusEvent *e ) bool ArticleWidget::eventFilter( TQObject *o, TQEvent *e ) { - if ( e->type() == TQEvent::KeyPress && (TQT_TQKEYEVENT(e)->key() == Key_Tab) ) { + if ( e->type() == TQEvent::KeyPress && (static_cast<TQKeyEvent*>(e)->key() == Key_Tab) ) { emit focusChangeRequest( this ); if ( !hasFocus() ) // focusChangeRequest was successful return true; diff --git a/knode/headerview.cpp b/knode/headerview.cpp index 31d85fda7..d30cc5a31 100644 --- a/knode/headerview.cpp +++ b/knode/headerview.cpp @@ -540,7 +540,7 @@ void KNHeaderView::slotSizeChanged( int section, int, int newSize ) bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e) { - if ((e->type() == TQEvent::KeyPress) && (TQT_TQKEYEVENT(e)->key() == Key_Tab)) { + if ((e->type() == TQEvent::KeyPress) && (static_cast<TQKeyEvent*>(e)->key() == Key_Tab)) { emit(focusChangeRequest(this)); if (!hasFocus()) // focusChangeRequest was successful return true; @@ -548,10 +548,10 @@ bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e) // right click on header 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; } diff --git a/knode/kncollectionview.cpp b/knode/kncollectionview.cpp index 7a8e6840a..ad952552b 100644 --- a/knode/kncollectionview.cpp +++ b/knode/kncollectionview.cpp @@ -421,7 +421,7 @@ void KNCollectionView::updatePopup() const bool KNCollectionView::eventFilter(TQObject *o, TQEvent *e) { - if ((e->type() == TQEvent::KeyPress) && (TQT_TQKEYEVENT(e)->key() == Key_Tab)) { + if ((e->type() == TQEvent::KeyPress) && (static_cast<TQKeyEvent*>(e)->key() == Key_Tab)) { emit(focusChangeRequest(this)); if (!hasFocus()) // focusChangeRequest was successful return true; @@ -429,10 +429,10 @@ bool KNCollectionView::eventFilter(TQObject *o, TQEvent *e) // header popup menu 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; } |