Doc: Fix undefined variable in QMetaMethod::invoke() documentation
Task-number: QTBUG-38871 Change-Id: I5b7aef58c652d13110aa73b7856927b5ba6fea50 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
8636bade17
commit
d6525a6c10
@ -124,7 +124,7 @@ QMetaMethod::invoke: Unable to handle unregistered datatype 'MyType'
|
|||||||
QString retVal;
|
QString retVal;
|
||||||
QByteArray normalizedSignature = QMetaObject::normalizedSignature("compute(QString, int, double)");
|
QByteArray normalizedSignature = QMetaObject::normalizedSignature("compute(QString, int, double)");
|
||||||
int methodIndex = obj->metaObject()->indexOfMethod(normalizedSignature);
|
int methodIndex = obj->metaObject()->indexOfMethod(normalizedSignature);
|
||||||
QMetaMethod method = metaObject->method(methodIndex);
|
QMetaMethod method = obj->metaObject()->method(methodIndex);
|
||||||
method.invoke(obj,
|
method.invoke(obj,
|
||||||
Qt::DirectConnection,
|
Qt::DirectConnection,
|
||||||
Q_RETURN_ARG(QString, retVal),
|
Q_RETURN_ARG(QString, retVal),
|
||||||
|
Loading…
Reference in New Issue
Block a user