summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcursor.cpp
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2020-01-26 16:39:05 +0800
committerSze Howe Koh <szehowe.koh@gmail.com>2020-01-27 21:31:08 +0800
commite44de91a2cab6e3c4632523e644fadaa93b89364 (patch)
treebfa3d9975aad650be1e1eb2c085c36df3572a32f /src/gui/kernel/qcursor.cpp
parent582311d1224cb196d8149bdfd8f178d5239c6b28 (diff)
Doc: Clarify usage of Qt::ReturnByValue in QCursor
Change-Id: I6ce2c658dc0e72beb9e7a2497c6dbdbc71d96bc5 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/gui/kernel/qcursor.cpp')
-rw-r--r--src/gui/kernel/qcursor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qcursor.cpp b/src/gui/kernel/qcursor.cpp
index 2018d28d92..7f6fdafbd0 100644
--- a/src/gui/kernel/qcursor.cpp
+++ b/src/gui/kernel/qcursor.cpp
@@ -614,8 +614,8 @@ const QBitmap *QCursor::mask() const
QBitmap bmpVal = cursor->bitmap(Qt::ReturnByValue);
\endcode
- If you disable the deprecated version, then you can omit \c Qt::ReturnByValue
- as shown below:
+ If you disable the deprecated version using the QT_DISABLE_DEPRECATED_BEFORE
+ macro, then you can omit \c Qt::ReturnByValue as shown below:
\code
QBitmap bmpVal = cursor->bitmap();
@@ -646,8 +646,8 @@ QBitmap QCursor::bitmap(Qt::ReturnByValue_t) const
QBitmap bmpVal = cursor->mask(Qt::ReturnByValue);
\endcode
- If you disable the deprecated version, then you can omit \c Qt::ReturnByValue
- as shown below:
+ If you disable the deprecated version using the QT_DISABLE_DEPRECATED_BEFORE
+ macro, then you can omit \c Qt::ReturnByValue as shown below:
\code
QBitmap bmpVal = cursor->mask();