diff options
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtesttouch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testlib/qtesttouch.h b/src/testlib/qtesttouch.h index 2db015a..141cb4d 100644 --- a/src/testlib/qtesttouch.h +++ b/src/testlib/qtesttouch.h @@ -78,21 +78,21 @@ namespace QTest QTouchEventSequence& press(int touchId, const QPoint &pt, QWidget *widget = 0) { QTouchEvent::TouchPoint &p = point(touchId); - p.setGlobalPos(mapToScreen(widget, pt)); + p.setScreenPos(mapToScreen(widget, pt)); p.setState(Qt::TouchPointPressed); return *this; } QTouchEventSequence& move(int touchId, const QPoint &pt, QWidget *widget = 0) { QTouchEvent::TouchPoint &p = point(touchId); - p.setGlobalPos(mapToScreen(widget, pt)); + p.setScreenPos(mapToScreen(widget, pt)); p.setState(Qt::TouchPointMoved); return *this; } QTouchEventSequence& release(int touchId, const QPoint &pt, QWidget *widget = 0) { QTouchEvent::TouchPoint &p = point(touchId); - p.setGlobalPos(mapToScreen(widget, pt)); + p.setScreenPos(mapToScreen(widget, pt)); p.setState(Qt::TouchPointReleased); return *this; } |