From: Kai Koehne Date: Tue, 2 Jul 2013 09:28:01 +0000 (+0200) Subject: Doc: Fix documentation of ownership of in QmlComponent::create X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3c43b5783e914fd513620dc779afacaee71c495f;p=konrad%2Fqtdeclarative.git Doc: Fix documentation of ownership of in QmlComponent::create Fixes documentation introduced in b1ee75d377fc9517d6 : Actually the ownership is _always_ transferred to the caller. Change-Id: I3b50588b69fa45730ac09c46912f8319e7581a5f Reviewed-by: Thomas Hartmann Reviewed-by: Alan Alpert --- diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp index 1fa1c23..df1e7f4 100644 --- a/src/qml/qml/qqmlcomponent.cpp +++ b/src/qml/qml/qqmlcomponent.cpp @@ -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 */