From 26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 20:42:22 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- src/gvcore/imageview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gvcore/imageview.cpp') 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; -- cgit v1.2.1