aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-04-09 18:32:50 +0200
committerMitch Curtis <mitch.curtis@qt.io>2019-04-10 07:38:45 +0000
commitb2fd2b664212344eb82b44f916c849314d5e02fb (patch)
tree69f027381be26c9197a462612b9877e35c0d2da6 /src
parent936cc8adccecfdd32966bd9c1ff7a9f534a027fe (diff)
Doc: correct the info about when each Qt Quick Test function is called
Only qmlEngineAvailable() is called for each QML test file; the rest are called once for the entire test application. Change-Id: I293c5a2491da75ddad68e7fb89bcd32b770fccf5 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmltest/doc/src/qtquicktest-index.qdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmltest/doc/src/qtquicktest-index.qdoc b/src/qmltest/doc/src/qtquicktest-index.qdoc
index bee160f6e8..4fad21e080 100644
--- a/src/qmltest/doc/src/qtquicktest-index.qdoc
+++ b/src/qmltest/doc/src/qtquicktest-index.qdoc
@@ -165,6 +165,10 @@
and \l {QQmlFileSelector::setExtraSelectors}{extra file selectors}
will have been set on the engine by this point.
+ This function is called once for each QML test file,
+ so any arguments are unique to that test. For example, this
+ means that each QML test file will have its own QML engine.
+
This function can be used to \l {Choosing the Correct Integration
Method Between C++ and QML}{register QML types} and
\l {QQmlEngine::addImportPath()}{add import paths},
@@ -177,10 +181,6 @@
\li Qt 5.12
\endtable
- Each function will be called once for each \c tst_*.qml file, so any
- arguments are unique to that test. For example, this means that each QML
- test file will have its own QML engine.
-
The following example demonstrates how the macro can be used to set context
properties on the QML engine: