Use QThread instead of QPushButton as an example in the docs

This keeps links local and inside the module.

Change-Id: I5e267197c6356a2c4e231c1941ed4be33b96a16e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Lars Knoll 2012-08-17 08:50:10 +02:00 committed by Qt by Nokia
parent 8a16954661
commit 1b54d1e4d5
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ QByteArray normType = QMetaObject::normalizedType(" int const *");
//! [2]
QMetaObject::invokeMethod(pushButton, "animateClick",
QMetaObject::invokeMethod(thread, "quit",
Qt::QueuedConnection);
//! [2]

View File

@ -1375,8 +1375,8 @@ enum { MaximumParamCount = 11 }; // up to 10 arguments + 1 return value
You only need to pass the name of the signal or slot to this function,
not the entire signature. For example, to asynchronously invoke
the \l{QPushButton::animateClick()}{animateClick()} slot on a
QPushButton, use the following code:
the \l{QThread::quit()}{quit()} slot on a
QThread, use the following code:
\snippet code/src_corelib_kernel_qmetaobject.cpp 2