Use QThread instead of QPushButton as an example in the docs
authorLars Knoll <lars.knoll@nokia.com>
Fri, 17 Aug 2012 06:50:10 +0000 (08:50 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 20 Aug 2012 08:23:34 +0000 (10:23 +0200)
This keeps links local and inside the module.

Change-Id: I5e267197c6356a2c4e231c1941ed4be33b96a16e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/doc/snippets/code/src_corelib_kernel_qmetaobject.cpp
src/corelib/kernel/qmetaobject.cpp

index 528fdbd..c686a71 100644 (file)
@@ -62,7 +62,7 @@ QByteArray normType = QMetaObject::normalizedType(" int    const  *");
 
 
 //! [2]
-QMetaObject::invokeMethod(pushButton, "animateClick",
+QMetaObject::invokeMethod(thread, "quit",
                           Qt::QueuedConnection);
 //! [2]
 
index 14ca6e1..739fcce 100644 (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