summaryrefslogtreecommitdiffstats
path: root/src/gvcore
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:42:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 23:38:54 +0900
commit5a71f93b014ff34c000e6cd9db1b730740a111cd (patch)
treea9c85c7578570a52947defc13b239b17c0eb3508 /src/gvcore
parent20b4653fd010811fd1bae426eea31ec6faf554b7 (diff)
downloadgwenview-5a71f93b014ff34c000e6cd9db1b730740a111cd.tar.gz
gwenview-5a71f93b014ff34c000e6cd9db1b730740a111cd.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a)
Diffstat (limited to 'src/gvcore')
-rw-r--r--src/gvcore/cursortracker.cpp4
-rw-r--r--src/gvcore/fileviewcontroller.cpp2
-rw-r--r--src/gvcore/imageview.cpp4
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;