Allow commiting and then reusing a QTouchEventSequence for testing.
authorMichael Brasser <michael.brasser@nokia.com>
Mon, 24 Oct 2011 03:13:53 +0000 (13:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 04:39:20 +0000 (06:39 +0200)
commit7cef4b6463fdb73ff602ade64b222333dd23e46c
tree6b08e4cf3acda314ff78fd9e2d83f836d4514d34
parentf49bd470990b838bb2c1a79605621e2d8c786a0b
Allow commiting and then reusing a QTouchEventSequence for testing.

This method allows calls to stationary() to automatically remember
the previous position for a given touch point id. Example usage:

QTouchEventSequence sequence = QTest::touchEvent(&window);
sequence.press(0, QPoint(10,10)).commit();
sequence.stationary(0).press(1, QPoint(40,10)).commit();

Task-number: QTBUG-22057
Change-Id: I489ab3d61f4637d2ed97d09ed0854afa814407a1
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
src/testlib/qtesttouch.h