From 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 21:30:28 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- konqueror/konq_combo.cpp | 2 +- konqueror/konq_frame.cpp | 4 ++-- konqueror/konq_mainwindow.cpp | 2 +- konqueror/konq_view.cpp | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'konqueror') diff --git a/konqueror/konq_combo.cpp b/konqueror/konq_combo.cpp index 354a4a590..8793441cd 100644 --- a/konqueror/konq_combo.cpp +++ b/konqueror/konq_combo.cpp @@ -399,7 +399,7 @@ bool KonqCombo::eventFilter( TQObject *o, TQEvent *ev ) if ( o == edit ) { int type = ev->type(); if ( type == TQEvent::KeyPress ) { - TQKeyEvent *e = TQT_TQKEYEVENT( ev ); + TQKeyEvent *e = static_cast( ev ); if ( e->key() == Key_Return || e->key() == Key_Enter ) { m_modifier = e->state(); diff --git a/konqueror/konq_frame.cpp b/konqueror/konq_frame.cpp index 8efe3fe38..cf0960f4d 100644 --- a/konqueror/konq_frame.cpp +++ b/konqueror/konq_frame.cpp @@ -177,7 +177,7 @@ bool KonqFrameStatusBar::eventFilter(TQObject* o, TQEvent *e) { emit clicked(); update(); - if ( TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton) + if ( static_cast(e)->button() == TQt::RightButton) splitFrameMenu(); return true; } @@ -397,7 +397,7 @@ bool KonqFrame::eventFilter(TQObject* /*obj*/, TQEvent *ev) { if (ev->type()==TQEvent::KeyPress) { - TQKeyEvent * keyEv = TQT_TQKEYEVENT(ev); + TQKeyEvent * keyEv = static_cast(ev); if ((keyEv->key()==Key_Tab) && (keyEv->state()==ControlButton)) { emit ((KonqFrameContainer*)parent())->ctrlTabPressed(); diff --git a/konqueror/konq_mainwindow.cpp b/konqueror/konq_mainwindow.cpp index 4633f72c9..ab8d56c77 100644 --- a/konqueror/konq_mainwindow.cpp +++ b/konqueror/konq_mainwindow.cpp @@ -3466,7 +3466,7 @@ bool KonqMainWindow::eventFilter(TQObject*obj,TQEvent *ev) { //kdDebug(1202) << "KonqMainWindow::eventFilter " << obj << " " << obj->className() << " " << obj->name() << endl; - TQFocusEvent * focusEv = TQT_TQFOCUSEVENT(ev); + TQFocusEvent * focusEv = static_cast(ev); if (focusEv->reason() == TQFocusEvent::Popup) { return KParts::MainWindow::eventFilter( obj, ev ); diff --git a/konqueror/konq_view.cpp b/konqueror/konq_view.cpp index 856c4aa92..0bacb9c5b 100644 --- a/konqueror/konq_view.cpp +++ b/konqueror/konq_view.cpp @@ -1293,7 +1293,7 @@ bool KonqView::eventFilter( TQObject *obj, TQEvent *e ) { if ( e->type() == TQEvent::ContextMenu ) { - TQContextMenuEvent *ev = TQT_TQCONTEXTMENUEVENT( e ); + TQContextMenuEvent *ev = static_cast( e ); if ( ev->reason() == TQContextMenuEvent::Mouse ) { return true; @@ -1301,7 +1301,7 @@ bool KonqView::eventFilter( TQObject *obj, TQEvent *e ) } else if ( e->type() == TQEvent::MouseButtonPress ) { - TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); + TQMouseEvent *ev = static_cast( e ); if ( ev->button() == TQt::RightButton ) { return true; @@ -1309,7 +1309,7 @@ bool KonqView::eventFilter( TQObject *obj, TQEvent *e ) } else if ( e->type() == TQEvent::MouseButtonRelease ) { - TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); + TQMouseEvent *ev = static_cast( e ); if ( ev->button() == TQt::RightButton ) { emit backRightClick(); @@ -1318,7 +1318,7 @@ bool KonqView::eventFilter( TQObject *obj, TQEvent *e ) } else if ( e->type() == TQEvent::MouseMove ) { - TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); + TQMouseEvent *ev = static_cast( e ); if ( ev->state() == TQt::RightButton ) { obj->removeEventFilter( this ); -- cgit v1.2.1