diff --git a/examples/qml/doc/src/qml-extending.qdoc b/examples/qml/doc/src/qml-extending.qdoc index 310436759e..ca244d7fce 100644 --- a/examples/qml/doc/src/qml-extending.qdoc +++ b/examples/qml/doc/src/qml-extending.qdoc @@ -165,7 +165,7 @@ developed in the previous examples into two types - a \c Boy and a \c Girl. \section1 Declare Boy and Girl -\snippet referenceexamples/coercion/person.h 0 +\snippet referenceexamples/coercion/person.h 1 The Person class remains unaltered in this example and the Boy and Girl C++ classes are trivial extensions of it. The types and their QML name are diff --git a/examples/qml/referenceexamples/coercion/person.h b/examples/qml/referenceexamples/coercion/person.h index 1ec095e841..aa2100f2da 100644 --- a/examples/qml/referenceexamples/coercion/person.h +++ b/examples/qml/referenceexamples/coercion/person.h @@ -77,8 +77,7 @@ private: int m_shoeSize = 0; }; - -// ![0] +// ![1] class Boy : public Person { Q_OBJECT @@ -97,6 +96,6 @@ public: }; //! [girl class] -// ![0] +// ![1] #endif // PERSON_H