tests/auto/gestures/tst_gestures.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
--- a/tests/auto/gestures/tst_gestures.cpp	Fri Sep 17 08:34:18 2010 +0300
+++ b/tests/auto/gestures/tst_gestures.cpp	Mon Oct 04 01:19:32 2010 +0300
@@ -395,7 +395,12 @@
 {
     GestureWidget widget;
     widget.grabGesture(CustomGesture::GestureType, Qt::DontStartGestureOnChildren);
+    widget.show();
+    QTest::qWaitForWindowShown(&widget);
+
     CustomEvent event;
+    event.hotSpot = widget.mapToGlobal(QPoint(5,5));
+    event.hasHotSpot = true;
     sendCustomGesture(&event, &widget);
 
     static const int TotalGestureEventsCount = CustomGesture::SerialFinishedThreshold - CustomGesture::SerialStartedThreshold + 1;