diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2011-03-14 14:33:46 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2011-03-14 14:35:51 (GMT) |
commit | 504666b545deafa3319ff699eff74eacc8d8559c (patch) | |
tree | 0d75386e4fdba674146829978fcae6a81dc4457c | |
parent | 2b0bfcf72f145b6948d9cdfd2db6c9f2e10b5def (diff) | |
download | Qt-504666b545deafa3319ff699eff74eacc8d8559c.zip Qt-504666b545deafa3319ff699eff74eacc8d8559c.tar.gz Qt-504666b545deafa3319ff699eff74eacc8d8559c.tar.bz2 |
Doc: Fixed snippet documenting QMetaObject::classInfo
Can't use Q_OBJECT without inheriting from QObject.
Reviewed-by: David Boddie
-rw-r--r-- | doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp index 7a752b1..86bad5e 100644 --- a/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp +++ b/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp @@ -43,7 +43,7 @@ void wrapInFunction() { //! [0] -class MyClass +class MyClass : public QObject { Q_OBJECT Q_CLASSINFO("author", "Sabrina Schweinsteiger") |