diff options
author | Topi Reinio <topi.reinio@qt.io> | 2018-10-24 13:29:18 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2018-10-25 09:43:29 +0000 |
commit | f9d223b03eb047c806ab4046318d9b76ff39136c (patch) | |
tree | b2469f02669505d82e3bb24e2d7a544a60740a9e /src/positioning | |
parent | 448b3a35cea27878a3123ec7e40f875032dd3267 (diff) | |
download | qtlocation-f9d223b03eb047c806ab4046318d9b76ff39136c.tar.gz |
Doc: Fix \code command usage
Since Qt 5.12, \code command accepts parameters, and in-line usage
no longer works (and was never documented to work).
Also, use \badcode for qmake snippets to make it appear as plain text.
Task-number: QTBUG-70980
Change-Id: I53cafdc912b4663d03c19b0a0003693330c94f15
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/positioning')
-rw-r--r-- | src/positioning/doc/src/qtpositioning.qdoc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/positioning/doc/src/qtpositioning.qdoc b/src/positioning/doc/src/qtpositioning.qdoc index f0094ff0..7c30ef07 100644 --- a/src/positioning/doc/src/qtpositioning.qdoc +++ b/src/positioning/doc/src/qtpositioning.qdoc @@ -40,12 +40,15 @@ For C++ projects include the header appropriate for the current use case, for example applications using routes may use - \code #include <QGeoCoordinate> \endcode + \code + #include <QGeoCoordinate> + \endcode The .pro file should have the \e positioning keyword added - \code QT += positioning \endcode - + \badcode + QT += positioning + \endcode See more in the \l{Qt Positioning}{Qt Positioning Overview}. @@ -87,11 +90,15 @@ To load the Qt Positioning module, add the following statement to your .qml file For C++ projects include the header appropriate for the current use case, for example applications using routes may use -\code #include <QGeoCoordinate> \endcode +\code +#include <QGeoCoordinate> +\endcode The .pro file should have the \e positioning keyword added -\code QT += positioning \endcode +\badcode +QT += positioning +\endcode \section1 Licenses |