diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-15 05:43:10 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-15 05:43:10 (GMT) |
commit | 96a3848f8f460a39d5bad1e5c78e61857645c28f (patch) | |
tree | 1938397954a921ba5733bb22d1b21afe4c9d342b /doc/src/snippets | |
parent | cde72ad73cf2ee31e701e84763c152685493b7c7 (diff) | |
parent | 76055d4e4a3023ef6390d85a02688bb11df57284 (diff) | |
download | Qt-96a3848f8f460a39d5bad1e5c78e61857645c28f.zip Qt-96a3848f8f460a39d5bad1e5c78e61857645c28f.tar.gz Qt-96a3848f8f460a39d5bad1e5c78e61857645c28f.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:
QNAM HTTP: Ignore double content-length headers
Don't pack Harfbuzz structs, this causes unaligned access crashes.
qmake vcxproj generator: fix description of custom build tools
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/src/snippets')
-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] + } |