Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/4/head
Michele Calgaro 1 year ago
parent f5f3eb33f5
commit d1b610d43e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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;

@ -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;
}

Loading…
Cancel
Save