diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2018-07-02 15:41:24 +0200 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2018-07-19 07:39:15 +0000 |
commit | 35645ce85bd0d48e8fd74b59898394e678ce1655 (patch) | |
tree | 8c79ec876480653ec48d5b8b0e7296561cf79652 /src/x11extras/doc/src/qtx11extras-module.qdoc | |
parent | b0fa702623fc8ed600c1c285a3fa5b80d29b5c0c (diff) | |
download | qtx11extras-35645ce85bd0d48e8fd74b59898394e678ce1655.tar.gz |
Doc: Mark a \snippet entry with a .pro file
This enables excluding the snippet from
the documentation in some cases. In addition,
moved the literal code blocks to a separate
snippet file.
Change-Id: I892bce6f249f67c06b5285244e0bf4f5701e7272
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/x11extras/doc/src/qtx11extras-module.qdoc')
-rw-r--r-- | src/x11extras/doc/src/qtx11extras-module.qdoc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/x11extras/doc/src/qtx11extras-module.qdoc b/src/x11extras/doc/src/qtx11extras-module.qdoc index 8eaecab..cb7c7bd 100644 --- a/src/x11extras/doc/src/qtx11extras-module.qdoc +++ b/src/x11extras/doc/src/qtx11extras-module.qdoc @@ -36,14 +36,12 @@ To include the definitions of the module's classes, use the following directive: - \code - #include <QX11Info> - \endcode + \snippet code/doc_src_qtx11extras.cpp 0 + \if !defined(qtforpython) To link against the module, add this line to your \l {qmake Manual}{qmake} \c .pro file: - \code - QT += x11extras - \endcode + \snippet code/doc_src_qtx11extras.cpp 1 + \endif */ |