diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-05-22 16:20:58 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-05-26 15:11:41 +0200 |
commit | cede00ec892805ad0f04db6566bf002195c4cb09 (patch) | |
tree | 0b1b5f0d7995b8a58607b7d68e4a52d00dca7475 /src/xml/doc/src | |
parent | 4f59d94bf3aa804edde1d81fac412d8fbcc92115 (diff) |
Document how to use CMake for Qt Xml
Task-number: QTBUG-73058
Change-Id: I2d19670016c9aef5e96d74b2b7e22c675058f30c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/xml/doc/src')
-rw-r--r-- | src/xml/doc/src/qtxml-index.qdoc | 20 | ||||
-rw-r--r-- | src/xml/doc/src/qtxml.qdoc | 14 |
2 files changed, 9 insertions, 25 deletions
diff --git a/src/xml/doc/src/qtxml-index.qdoc b/src/xml/doc/src/qtxml-index.qdoc index 0b8010395f..6a0f1da613 100644 --- a/src/xml/doc/src/qtxml-index.qdoc +++ b/src/xml/doc/src/qtxml-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. @@ -35,20 +35,16 @@ QXmlStreamWriter classes. The classes are both easier to use and more compliant with the XML standard. - To include the definitions of the module's classes, use the - following directive: - - \snippet code/doc_src_qtxml.cpp 0 + The \l{Qt XML C++ Classes} page gives an overview over the available classes + in this module. - \if !defined(qtforpython) - To link against the module, add this line to your \l qmake \c - .pro file: + \include module-use.qdocinc using qt module + \snippet snippets/CMakeLists.txt cmake_use - \snippet code/doc_src_qtxml.pro 1 - \endif + See also the \l[QtDoc]{Building with CMake} overview. - The \l{Qt XML C++ Classes} page gives an overview over the available classes - in this module. + \include module-use.qdocinc building with qmake + \snippet snippets/snippets.pro qmake_use \section1 Licenses diff --git a/src/xml/doc/src/qtxml.qdoc b/src/xml/doc/src/qtxml.qdoc index 452e39d745..b12089841d 100644 --- a/src/xml/doc/src/qtxml.qdoc +++ b/src/xml/doc/src/qtxml.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. @@ -37,16 +37,4 @@ documents iteratively (SAX), we recommend using Qt Core's QXmlStreamReader and QXmlStreamWriter classes. The classes are both easier to use and more compliant with the XML standard. - - To include the definitions of the module's classes, use the - following directive: - - \snippet code/doc_src_qtxml.cpp 0 - - \if !defined(qtforpython) - To link against the module, add this line to your \l qmake \c - .pro file: - - \snippet code/doc_src_qtxml.pro 1 - \endif */ |