From 7dd30b424ac5aee23d344c0eed8296b9a5e09200 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Fri, 19 Jun 2009 11:56:10 +0200 Subject: Move with window to a position that is not 0,0 in the raw test That way the widget local positions will not be the same as the screen coordinates. (I missed a bug in QTouchEvent::TouchPoint because of this coincidence in the test). --- tests/auto/qtouchevent/tst_qtouchevent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qtouchevent/tst_qtouchevent.cpp b/tests/auto/qtouchevent/tst_qtouchevent.cpp index f27641b..6885e8b 100644 --- a/tests/auto/qtouchevent/tst_qtouchevent.cpp +++ b/tests/auto/qtouchevent/tst_qtouchevent.cpp @@ -246,6 +246,7 @@ void tst_QTouchEvent::basicRawEventTranslation() { tst_QTouchEventWidget touchWidget; touchWidget.setAttribute(Qt::WA_AcceptTouchEvents); + touchWidget.setGeometry(100, 100, 400, 300); QPointF pos = touchWidget.rect().center(); QPointF screenPos = touchWidget.mapToGlobal(pos.toPoint()); -- cgit v0.12