diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-11 19:15:23 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-11 19:15:23 (GMT) |
commit | 1af842ec8bcf2e86453f964464fb3770a6025146 (patch) | |
tree | 147672121104baea3ea3b6c8aa88733011c14f44 /doc | |
parent | 7a81735272b5ee065f499a492cca4b4a703e0659 (diff) | |
parent | 540d5bde104dd924b24850c0ed8e8ee285b6ec69 (diff) | |
download | Qt-1af842ec8bcf2e86453f964464fb3770a6025146.zip Qt-1af842ec8bcf2e86453f964464fb3770a6025146.tar.gz Qt-1af842ec8bcf2e86453f964464fb3770a6025146.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
Minor adjustments to merge-request 915
Implement brush transformations for directfb.
Add FreeBSD's certificate bundle to the certificates list.
SSL internals: upon error, read all errors from OpenSSL
Added an example for QTest::touchEvent to the documentation.
Push and pop the thread-default context for the current thread
Fix compilation by s/intptr_t/quintptr/
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/code/src_qtestlib_qtestcase.cpp | 16 |
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] + } |