diff options
author | Luca Di Sera <luca.disera@qt.io> | 2021-11-22 17:00:06 +0100 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2021-11-25 09:55:39 +0100 |
commit | 8ad04a00fe5f5d1694fc39a0138f7617c283531f (patch) | |
tree | 532c909bd937cef9e3ef7380c9d593f6119bff4b | |
parent | 4e694ad3b80d1bc05286182e4ded54bd2b86e982 (diff) |
Doc: Replace use of \oldcode-\newcode
The command-pair was recently deprecated.
The replacement code should produce an output that is equal to the
previous one.
Task-number: QTBUG-98499
Change-Id: I9e0d696b409cbb319afc3fc3b088eadf3815e443
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/sensors/qtapsensor.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sensors/qtapsensor.cpp b/src/sensors/qtapsensor.cpp index a0df3cd3..c9cb0eb3 100644 --- a/src/sensors/qtapsensor.cpp +++ b/src/sensors/qtapsensor.cpp @@ -84,11 +84,17 @@ IMPLEMENT_READING(QTapReading) the detected axis. Previous versions of the API did not allow this. Applications that check for the _Pos and _Neg flags as values should be updated so they can work with all devices. - \oldcode + For example, if you have code like + + \code if (reading->tapDirection() == QTapReading::X_Pos) { ... } - \newcode + \endcode + + you can rewrite it as + + \code if (reading->tapDirection()&QTapReading::X_Pos) { ... } |