summaryrefslogtreecommitdiffstats
path: root/src/gvcore
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-08 12:12:50 +0900
committerMichele Calgaro <[email protected]>2023-08-08 17:42:34 +0900
commitff1ab64a5c1be7d4d7642da6282808ac19d526c7 (patch)
tree3ebe2a0c384077f14861b94f2a44422626c03b92 /src/gvcore
parentd6c24d70fffccecf73e9a8b87432ca798fdd7eb8 (diff)
downloadgwenview-ff1ab64a5c1be7d4d7642da6282808ac19d526c7.tar.gz
gwenview-ff1ab64a5c1be7d4d7642da6282808ac19d526c7.zip
Drop TQT_TQ*_OBJECT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d1b610d43eef32a054c6113ec705f1c982339af8)
Diffstat (limited to 'src/gvcore')
-rw-r--r--src/gvcore/cursortracker.cpp4
-rw-r--r--src/gvcore/imageviewcontroller.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gvcore/cursortracker.cpp b/src/gvcore/cursortracker.cpp
index fc56682..5baf1b9 100644
--- a/src/gvcore/cursortracker.cpp
+++ b/src/gvcore/cursortracker.cpp
@@ -48,7 +48,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
switch (_event->type()) {
case TQEvent::MouseMove: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
- if (TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) || (event->stateAfter() & Qt::LeftButton)) {
+ if (widget->rect().contains(event->pos()) || (event->stateAfter() & Qt::LeftButton)) {
show();
move(event->globalPos().x() + 15, event->globalPos().y() + 15);
} else {
@@ -59,7 +59,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
case TQEvent::MouseButtonRelease: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
- if ( !TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) ) {
+ if ( !widget->rect().contains(event->pos()) ) {
hide();
}
break;
diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp
index 1eefa4d..f97c847 100644
--- a/src/gvcore/imageviewcontroller.cpp
+++ b/src/gvcore/imageviewcontroller.cpp
@@ -387,7 +387,7 @@ void ImageViewController::slotAutoHide() {
if (d->mFullScreenBar) {
// Do not auto hide if the cursor is over the bar
TQPoint pos=d->mFullScreenBar->mapFromGlobal(TQCursor::pos());
- if (TQT_TQRECT_OBJECT(d->mFullScreenBar->rect()).contains(pos)) {
+ if (d->mFullScreenBar->rect().contains(pos)) {
d->restartAutoHideTimer();
return;
}