summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-19 09:56:10 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-19 09:56:10 (GMT)
commit7dd30b424ac5aee23d344c0eed8296b9a5e09200 (patch)
tree5ef8b27c01999e2cfd0bbd55dc35a68295fe48b9 /tests
parentabf9213b649947420ef1ba0b74c0437cbd249f90 (diff)
downloadQt-7dd30b424ac5aee23d344c0eed8296b9a5e09200.zip
Qt-7dd30b424ac5aee23d344c0eed8296b9a5e09200.tar.gz
Qt-7dd30b424ac5aee23d344c0eed8296b9a5e09200.tar.bz2
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).
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtouchevent/tst_qtouchevent.cpp1
1 files changed, 1 insertions, 0 deletions
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());