Doc: Clarify usage of Qt::ReturnByValue in QCursor
Change-Id: I6ce2c658dc0e72beb9e7a2497c6dbdbc71d96bc5 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
parent
582311d122
commit
e44de91a2c
@ -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()
|
||||
*/
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user