summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/doc/src')
-rw-r--r--src/testlib/doc/src/qttest-index.qdoc16
-rw-r--r--src/testlib/doc/src/qttest.qdoc22
2 files changed, 9 insertions, 29 deletions
diff --git a/src/testlib/doc/src/qttest-index.qdoc b/src/testlib/doc/src/qttest-index.qdoc
index d1b24a7858..9182881a2a 100644
--- a/src/testlib/doc/src/qttest-index.qdoc
+++ b/src/testlib/doc/src/qttest-index.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2019 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -40,17 +40,13 @@
to work with the Qt version it was developed against. However, source
compatibility is guaranteed.
- \section1 Getting Started
+ \include module-use.qdocinc using qt module
+ \snippet snippets/CMakeLists.txt cmake_use
- To enable Qt Test in a project, add this directive into the C++ files:
+ See also the \l[QtDoc]{Building with CMake} overview.
- \snippet code/doc_src_qttest.cpp 0
-
- \if !define(qtforpython)
- To link against Qt Test, add this line to the project file:
-
- \snippet code/doc_src_qttest.pro 1
- \endif
+ \include module-use.qdocinc building with qmake
+ \snippet snippets/snippets.pro qmake_use
\section1 Articles and Guides
diff --git a/src/testlib/doc/src/qttest.qdoc b/src/testlib/doc/src/qttest.qdoc
index e61fd71e69..29b51d9572 100644
--- a/src/testlib/doc/src/qttest.qdoc
+++ b/src/testlib/doc/src/qttest.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -35,22 +35,6 @@
\brief Provides classes for unit testing Qt applications and libraries.
- Applications that use Qt's unit testing classes need to
- be configured to be built against the Qt Test module.
- To include the definitions of the module's classes, use the
- following directive:
-
- \snippet code/doc_src_qttest.cpp 0
-
- \if !defined(qtforpython)
- To link against the module, add this line to your \l qmake \c
- .pro file:
-
- \snippet code/doc_src_qttest.pro 1
- \endif
-
- See \l{Qt Test Overview} for an introduction on how to use
- Qt's unit testing features with your applications.
-
+ See the \l{Qt Test} page and the \l{Qt Test Overview} guide for further
+ information about using this module in your application.
*/
-