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:
Topi Reinio 2014-06-04 11:31:53 +02:00 committed by The Qt Project
parent 8636bade17
commit d6525a6c10

View File

@ -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),