summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-12-02 11:45:12 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-02 08:23:13 +0100
commit2a3738265a873307077067ab02bc1a31a9ddc49a (patch)
tree6d225f7e78a80234fc32ec4619be4f0b33060951 /doc
parent0d7cc00c07831d277a7aea9b3d22c61b4e1ef41e (diff)
Update documentation for QTest::qExec()
Update the documentation to make it clear that regular test applications should not call QTest::qExec() more than once. Also minor rewording of description of return value. Change-Id: I45bdf520ed10fd3c9232847a0ec0bc2b32d4caf3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_qtestlib_qtestcase.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
index efda1771d6..b5f1a51464 100644
--- a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
+++ b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
@@ -162,11 +162,8 @@ while (myNetworkServerNotResponding() && i++ < 50)
//! [18]
-MyFirstTestObject test1;
+MyTestObject test1;
QTest::qExec(&test1);
-
-MySecondTestObject test2;
-QTest::qExec(&test2);
//! [18]