summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2010-11-17 12:56:03 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2010-11-17 12:56:03 (GMT)
commita34730e837bc1430011028dba11bbf5a4672789d (patch)
treee3a255dc51cada6c680d9110b855f46ba99804bd /doc/src/snippets/code/src_qtestlib_qtestcase.cpp
parentb5d26bfb348b6a99529ecf9ab66845e7eacd4732 (diff)
parent88c2e6f8f9f968c6bfe4ca0c0e3e54365a3e0c82 (diff)
downloadQt-a34730e837bc1430011028dba11bbf5a4672789d.zip
Qt-a34730e837bc1430011028dba11bbf5a4672789d.tar.gz
Qt-a34730e837bc1430011028dba11bbf5a4672789d.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'doc/src/snippets/code/src_qtestlib_qtestcase.cpp')
-rw-r--r--doc/src/snippets/code/src_qtestlib_qtestcase.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
index 6ae8939..adb0c34 100644
--- a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
+++ b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
@@ -230,5 +230,21 @@ widget.show();
QTest::qWaitForWindowShown(&widget);
//! [24]
+//! [25]
+QWidget widget;
+
+QTest::touchEvent(&widget)
+ .press(0, QPoint(10, 10));
+QTest::touchEvent(&widget)
+ .stationary(0)
+ .press(1, QPoint(40, 10));
+QTest::touchEvent(&widget)
+ .move(0, QPoint(12, 12))
+ .move(1, QPoint(45, 5));
+QTest::touchEvent(&widget)
+ .release(0)
+ .release(1);
+//! [25]
+
}