From 26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 20:42:22 +0900 Subject: [PATCH] Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- src/gvcore/cursortracker.cpp | 4 ++-- src/gvcore/fileviewcontroller.cpp | 2 +- src/gvcore/imageview.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gvcore/cursortracker.cpp b/src/gvcore/cursortracker.cpp index e6bee5c..9c3441a 100644 --- a/src/gvcore/cursortracker.cpp +++ b/src/gvcore/cursortracker.cpp @@ -47,7 +47,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) { switch (_event->type()) { case TQEvent::MouseMove: { - TQMouseEvent* event=TQT_TQMOUSEEVENT(_event); + TQMouseEvent* event=static_cast(_event); if (widget->rect().contains(event->pos()) || (event->stateAfter() & TQt::LeftButton)) { show(); move(event->globalPos().x() + 15, event->globalPos().y() + 15); @@ -58,7 +58,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) { } case TQEvent::MouseButtonRelease: { - TQMouseEvent* event=TQT_TQMOUSEEVENT(_event); + TQMouseEvent* event=static_cast(_event); if ( !widget->rect().contains(event->pos()) ) { hide(); } diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index b53de13..d338d32 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -487,7 +487,7 @@ void FileViewController::setFocus() { bool FileViewController::eventFilter(TQObject*, TQEvent* event) { if (event->type()!=TQEvent::MouseButtonDblClick) return false; - TQMouseEvent* mouseEvent=TQT_TQMOUSEEVENT(event); + TQMouseEvent* mouseEvent=static_cast(event); if (mouseEvent->state() & TQt::ControlButton || mouseEvent->state() & TQt::ShiftButton) { return true; } diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp index 11ffb94..3f1db66 100644 --- a/src/gvcore/imageview.cpp +++ b/src/gvcore/imageview.cpp @@ -280,7 +280,7 @@ public: case TQEvent::KeyRelease: case TQEvent::AccelOverride: return static_cast< ImageView* >( TQT_TQWIDGET(parent())) - ->viewportKeyEvent(TQT_TQKEYEVENT(event)); + ->viewportKeyEvent(static_cast(event)); default: break; } @@ -1015,7 +1015,7 @@ bool ImageView::eventFilter(TQObject* obj, TQEvent* event) { case TQEvent::KeyPress: case TQEvent::KeyRelease: case TQEvent::AccelOverride: - return viewportKeyEvent(TQT_TQKEYEVENT(event)); + return viewportKeyEvent(static_cast(event)); case TQEvent::MouseButtonDblClick: if (d->mToolID==ZOOM) return false;