summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2011-03-14 14:33:46 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2011-03-14 14:35:51 (GMT)
commit504666b545deafa3319ff699eff74eacc8d8559c (patch)
tree0d75386e4fdba674146829978fcae6a81dc4457c
parent2b0bfcf72f145b6948d9cdfd2db6c9f2e10b5def (diff)
downloadQt-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.cpp2
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")