diff options
Diffstat (limited to 'src')
-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; |