Better documentation for subclassing QQuickItem
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 6 Jun 2012 02:04:39 +0000 (12:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 05:50:07 +0000 (07:50 +0200)
Task-number: QTBUG-26025

Change-Id: Ia0fadf54ee8924f9892bc567c107efc4dca80628
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickitem.cpp

index d184ba0..f5ab703 100644 (file)
@@ -3028,6 +3028,8 @@ void QQuickItem::setClip(bool c)
   This function is called to handle this item's changes in
   geometry from \a oldGeometry to \a newGeometry. If the two
   geometries are the same, it doesn't do anything.
+
+  Derived classes must call the base class method within their implementation.
  */
 void QQuickItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
 {
@@ -3641,6 +3643,11 @@ QQmlListProperty<QQuickTransform> QQuickItem::transform()
                                                      QQuickItemPrivate::transform_clear);
 }
 
+/*!
+  \reimp
+  Derived classes should call the base class method before adding their own action to
+  perform at classBegin.
+*/
 void QQuickItem::classBegin()
 {
     Q_D(QQuickItem);
@@ -3653,6 +3660,11 @@ void QQuickItem::classBegin()
         d->extra->layer->classBegin();
 }
 
+/*!
+  \reimp
+  Derived classes should call the base class method before adding their own actions to
+  perform at componentComplete.
+*/
 void QQuickItem::componentComplete()
 {
     Q_D(QQuickItem);