aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-09 01:00:06 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-11-09 01:00:07 +0100
commitb01a16ea74e92c78c009f132ef7bc70e91398a98 (patch)
treefca15f247fed71ebfd67e7fda7864612190c42d9 /src/qmltest
parent6fecfdc769314162d6c909c9ae0a85631964883f (diff)
parent6c08137faf1a53db879701126608833474a2450b (diff)
Merge remote-tracking branch 'origin/5.12' into dev
Diffstat (limited to 'src/qmltest')
-rw-r--r--src/qmltest/doc/src/qtquicktest-index.qdoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmltest/doc/src/qtquicktest-index.qdoc b/src/qmltest/doc/src/qtquicktest-index.qdoc
index 0a89066d47..15ea33d06a 100644
--- a/src/qmltest/doc/src/qtquicktest-index.qdoc
+++ b/src/qmltest/doc/src/qtquicktest-index.qdoc
@@ -181,6 +181,8 @@
class Setup : public QObject
{
+ Q_OBJECT
+
public:
Setup() {}
@@ -196,6 +198,15 @@
#include "tst_mytest.moc"
\endcode
+ The \c .moc include is based on the file name of the \c .cpp file.
+ For example, in the example above, the \c .cpp file is named
+ \c tst_mytest.cpp. If the file was named \c MyTest.cpp, the include would
+ be:
+
+ \code
+ #include "MyTest.moc"
+ \endcode
+
\section1 Licenses
Qt Quick Tests is available under commercial licenses from \l{The Qt Company}.