diff options
Diffstat (limited to 'digikam/libs/widgets/common/dcursortracker.cpp')
-rw-r--r-- | digikam/libs/widgets/common/dcursortracker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/digikam/libs/widgets/common/dcursortracker.cpp b/digikam/libs/widgets/common/dcursortracker.cpp index 2e3ae53..951439b 100644 --- a/digikam/libs/widgets/common/dcursortracker.cpp +++ b/digikam/libs/widgets/common/dcursortracker.cpp @@ -65,8 +65,8 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e) case TQEvent::MouseMove: { TQMouseEvent *event = TQT_TQMOUSEEVENT(e); - if (m_enable && (TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) || - (event->stateAfter() & Qt::LeftButton))) + if (m_enable && (widget->rect().contains(event->pos()) || + (event->stateAfter() & Qt::LeftButton))) { show(); TQPoint p = widget->mapToGlobal(TQPoint(widget->width()/2, 0)); @@ -82,7 +82,7 @@ bool DCursorTracker::eventFilter(TQObject *object, TQEvent *e) case TQEvent::MouseButtonRelease: { TQMouseEvent* event = TQT_TQMOUSEEVENT(e); - if ( !TQT_TQRECT_OBJECT(widget->rect()).contains(event->pos()) ) + if ( !widget->rect().contains(event->pos()) ) { hide(); } |