Doc: Fix return value for Q_ARG and Q_RETURN_ARG
The macros no longer return QGenericArgument and QGenericReturnArgument objects. As of 6.5, they return QMetaMethodArgument and QMetaMethodReturnArgument, respectively. Fixes: QTBUG-113147 Pick-to: 6.5 Change-Id: I06e0cf8255e6d4fee43048850f1717b1740d4846 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
2cd7e34fa0
commit
6e5258b48b
@ -4107,23 +4107,24 @@ const char *QMetaClassInfo::value() const
|
||||
*/
|
||||
|
||||
/*!
|
||||
\macro QGenericArgument Q_ARG(Type, const Type &value)
|
||||
\macro QMetaMethodArgument Q_ARG(Type, const Type &value)
|
||||
\relates QMetaObject
|
||||
|
||||
This macro takes a \a Type and a \a value of that type and
|
||||
returns a \l QGenericArgument object that can be passed to
|
||||
QMetaObject::invokeMethod().
|
||||
returns a QMetaMethodArgument, which can be passed to the template
|
||||
QMetaObject::invokeMethod() with the \c {Args &&...} arguments.
|
||||
|
||||
\sa Q_RETURN_ARG()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\macro QGenericReturnArgument Q_RETURN_ARG(Type, Type &value)
|
||||
\macro QMetaMethodReturnArgument Q_RETURN_ARG(Type, Type &value)
|
||||
\relates QMetaObject
|
||||
|
||||
This macro takes a \a Type and a non-const reference to a \a
|
||||
value of that type and returns a QGenericReturnArgument object
|
||||
that can be passed to QMetaObject::invokeMethod().
|
||||
value of that type and returns a QMetaMethodReturnArgument, which can be
|
||||
passed to the template QMetaObject::invokeMethod() with the \c {Args &&...}
|
||||
arguments.
|
||||
|
||||
\sa Q_ARG()
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user