diff options
author | Michele Calgaro <[email protected]> | 2023-11-30 20:42:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-30 20:42:22 +0900 |
commit | 26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a (patch) | |
tree | 1f1f210528fb32f45c7237d7b6c23eff9fdb078f | |
parent | 357bdcb4722d4fbfe02cdd8685d76fd0be17259b (diff) | |
download | gwenview-26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a.tar.gz gwenview-26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | src/gvcore/cursortracker.cpp | 4 | ||||
-rw-r--r-- | src/gvcore/fileviewcontroller.cpp | 2 | ||||
-rw-r--r-- | 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<TQMouseEvent*>(_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<TQMouseEvent*>(_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<TQMouseEvent*>(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<TQKeyEvent*>(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<TQKeyEvent*>(event)); case TQEvent::MouseButtonDblClick: if (d->mToolID==ZOOM) return false; |