summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-08-26 15:49:25 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-08-26 15:49:25 (GMT)
commit2b7aaf18660fb6639a97b0421563696648384948 (patch)
treec332c0919b79f6cef5a7d79996d7e5857a110721 /src/corelib/kernel
parent743117fa94b5e8807b0b9f9b16f2a712e6bfb47f (diff)
downloadQt-2b7aaf18660fb6639a97b0421563696648384948.zip
Qt-2b7aaf18660fb6639a97b0421563696648384948.tar.gz
Qt-2b7aaf18660fb6639a97b0421563696648384948.tar.bz2
Doc: Corrected incorrect snippets and info in inherits() documentation.
Task-number: 201882 Reviewed-by: Trust Me
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qobject.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index ddfc44f..1f35c73 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -1089,10 +1089,9 @@ QObjectPrivate::Connection::~Connection()
\snippet doc/src/snippets/code/src_corelib_kernel_qobject.cpp 4
- (\l QLayoutItem is not a QObject.)
-
- Consider using qobject_cast<Type *>(object) instead. The method
- is both faster and safer.
+ If you need to determine whether an object is an instance of a particular
+ class for the purpose of casting it, consider using qobject_cast<Type *>(object)
+ instead.
\sa metaObject(), qobject_cast()
*/