Symbol for max number of arguments in QMetaMethod::invoke()
QMetaMethod::invoke(..) takes fixed number of arguments for execution. Adding preprocessor macros which literaly equals this number would be useful for writing some generic code. Task-number: QTBUG-31821 Change-Id: Ia2faf291f3f7df44a47c3cf18f5cd587d37d7d2e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f9f72aa114
commit
f52e9b1172
@ -1589,6 +1589,14 @@ bool QMetaObject::invokeMethod(QObject *obj,
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*!
|
||||
\macro Q_METAMETHOD_INVOKE_MAX_ARGS
|
||||
\relates QMetaMethod
|
||||
|
||||
Equals maximum number of arguments available for
|
||||
execution of the method via QMetaMethod::invoke()
|
||||
*/
|
||||
|
||||
QByteArray QMetaMethodPrivate::signature() const
|
||||
{
|
||||
Q_ASSERT(priv(mobj->d.data)->revision >= 7);
|
||||
|
@ -50,6 +50,8 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
template <typename T> class QList;
|
||||
|
||||
#define Q_METAMETHOD_INVOKE_MAX_ARGS 10
|
||||
|
||||
class Q_CORE_EXPORT QMetaMethod
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user