From 8cbc7ef05cbf8da8a3f3d39c22900c18ac32465e Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 16 Apr 2013 06:40:04 +0200 Subject: [PATCH] Fix the QTouchEventSequence code snippet so that it compiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release() function also requires the QPoint to be set which was missing from the code snippet. Change-Id: I4a5cd2bed0915eb1fbaac3a34fb229eac9c284df Reviewed-by: Topi Reiniƶ Reviewed-by: Geir Vattekar --- src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp index ab6ca63f40..a17628155a 100644 --- a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp +++ b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp @@ -229,8 +229,8 @@ QTest::touchEvent(&widget) .move(0, QPoint(12, 12)) .move(1, QPoint(45, 5)); QTest::touchEvent(&widget) - .release(0) - .release(1); + .release(0, QPoint(12, 12)) + .release(1, QPoint(45, 5)); //! [25]