Doc: Fix documentation of ownership of in QmlComponent::create
authorKai Koehne <kai.koehne@digia.com>
Tue, 2 Jul 2013 09:28:01 +0000 (11:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 3 Jul 2013 11:41:03 +0000 (13:41 +0200)
Fixes documentation introduced in b1ee75d377fc9517d6 : Actually the
ownership is _always_ transferred to the caller.

Change-Id: I3b50588b69fa45730ac09c46912f8319e7581a5f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>

src/qml/qml/qqmlcomponent.cpp

index 1fa1c23..df1e7f4 100644 (file)
@@ -768,8 +768,7 @@ QQmlComponent::QQmlComponent(QQmlComponentPrivate &dd, QObject *parent)
     If \a context is 0 (the default), it will create the instance in the
     engine' s \l {QQmlEngine::rootContext()}{root context}.
 
-    The ownership of the returned object instance is determined by the QQmlEngine.
-    By default the caller has to take care that the object is eventually deleted.
+    The ownership of the returned object instance is transferred to the caller.
 
     \sa QQmlEngine::ObjectOwnership
 */
@@ -810,8 +809,7 @@ QObject *QQmlComponent::create(QQmlContext *context)
     communicate information to an instantiated component, as it allows their
     initial values to be configured before property bindings take effect.
 
-    The ownership of the returned object instance is determined by the QQmlEngine.
-    By default the caller has to take care that the object is eventually deleted.
+    The ownership of the returned object instance is transferred to the caller.
 
     \sa completeCreate(), QQmlEngine::ObjectOwnership
 */