Doc: Clarify usage of Qt::ReturnByValue in QCursor

Change-Id: I6ce2c658dc0e72beb9e7a2497c6dbdbc71d96bc5
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Sze Howe Koh 2020-01-26 16:39:05 +08:00
parent 582311d122
commit e44de91a2c
2 changed files with 6 additions and 4 deletions

View File

@ -3326,6 +3326,8 @@
This is a dummy type, designed to help users transition from certain deprecated APIs to their replacement APIs.
\sa QCursor::bitmap()
\sa QCursor::mask()
\sa QLabel::picture()
\sa QLabel::pixmap()
*/

View File

@ -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();