summaryrefslogtreecommitdiffstats
path: root/src/printsupport/doc/src
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-05-22 14:41:44 +0200
committerKai Koehne <kai.koehne@qt.io>2020-05-26 15:11:40 +0200
commit3c31dd0330ccdc7e72dcfdba7391379face168a1 (patch)
tree2c54dc94dabe5159de7a3f9afbe1426a3fc0749a /src/printsupport/doc/src
parent292d49c5e91f9053a50f041140e8f02e9cc9c162 (diff)
Document how to use CMake for Qt PrintSupport
Move the details on how to build after the index page. Remove mentioning of the central include. Instead, mention the CMake functions to use. Task-number: QTBUG-73058 Change-Id: Ibf5952530c3b86915c9fb6562f7d9e0b010720ee Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/printsupport/doc/src')
-rw-r--r--src/printsupport/doc/src/qtprintsupport-index.qdoc10
-rw-r--r--src/printsupport/doc/src/qtprintsupport-module.qdoc14
2 files changed, 10 insertions, 14 deletions
diff --git a/src/printsupport/doc/src/qtprintsupport-index.qdoc b/src/printsupport/doc/src/qtprintsupport-index.qdoc
index eeef9143db..d566f12e66 100644
--- a/src/printsupport/doc/src/qtprintsupport-index.qdoc
+++ b/src/printsupport/doc/src/qtprintsupport-index.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 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.
@@ -166,6 +166,14 @@
about the configured page dimensions in order to insert page breaks at the most
appropriate places in printed documents.
+ \include module-use.qdocinc using qt module
+ \snippet snippets/CMakeLists.txt cmake_use
+
+ See also the \l[QtDoc]{Building with CMake} overview.
+
+ \include module-use.qdocinc building with qmake
+ \snippet snippets/snippets.pro qmake_use
+
\section1 Licenses and Trademarks
The Qt Print Support module is available under commercial licenses from \l{The Qt Company}.
diff --git a/src/printsupport/doc/src/qtprintsupport-module.qdoc b/src/printsupport/doc/src/qtprintsupport-module.qdoc
index 0e851e593c..0219c2e478 100644
--- a/src/printsupport/doc/src/qtprintsupport-module.qdoc
+++ b/src/printsupport/doc/src/qtprintsupport-module.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.
@@ -32,16 +32,4 @@
\ingroup modules
\qtvariable printsupport
-
- To include the definitions of the module's classes, use the
- following directive:
-
- \snippet code/doc_src_qtprintsupport.cpp 1
-
- \if !defined(qtforpython)
- To link against the module, add this line to your \l qmake \c
- .pro file:
-
- \snippet code/doc_src_qtprintsupport.pro 0
- \endif
*/