diff options
author | David Boddie <dboddie@trolltech.com> | 2009-08-26 15:49:25 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-08-26 15:49:25 (GMT) |
commit | 2b7aaf18660fb6639a97b0421563696648384948 (patch) | |
tree | c332c0919b79f6cef5a7d79996d7e5857a110721 /doc/src/snippets/code | |
parent | 743117fa94b5e8807b0b9f9b16f2a712e6bfb47f (diff) | |
download | Qt-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 'doc/src/snippets/code')
-rw-r--r-- | doc/src/snippets/code/src_corelib_kernel_qobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp index 5c0f80c..a02d4e9 100644 --- a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp +++ b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp @@ -39,10 +39,10 @@ timer->inherits("QTimer"); // returns true timer->inherits("QObject"); // returns true timer->inherits("QAbstractButton"); // returns false -// QLayout inherits QObject and QLayoutItem -QLayout *layout = new QLayout; +// QVBoxLayout inherits QObject and QLayoutItem +QVBoxLayout *layout = new QVBoxLayout; layout->inherits("QObject"); // returns true -layout->inherits("QLayoutItem"); // returns false +layout->inherits("QLayoutItem"); // returns true (even though QLayoutItem is not a QObject) //! [4] |