diff options
Diffstat (limited to 'tests/auto/other/gestures/tst_gestures.cpp')
-rw-r--r-- | tests/auto/other/gestures/tst_gestures.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/gestures/tst_gestures.cpp b/tests/auto/other/gestures/tst_gestures.cpp index 278e1d3070..5b34ebb013 100644 --- a/tests/auto/other/gestures/tst_gestures.cpp +++ b/tests/auto/other/gestures/tst_gestures.cpp @@ -2099,7 +2099,7 @@ public: switch(event->type()) { case QEvent::MouseButtonPress: if (me->button() == mouseButton && gesture->state() == Qt::NoGesture) { - gesture->setHotSpot(QPointF(me->globalPos())); + gesture->setHotSpot(QPointF(me->globalPosition().toPoint())); if (m_type == RmbAndCancelAllType) gesture->setGestureCancelPolicy(QGesture::CancelAllInContext); return QGestureRecognizer::TriggerGesture; |