diff options
author | Kai Koehne <kai.koehne@digia.com> | 2013-07-02 11:28:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-03 13:41:03 +0200 |
commit | 3c43b5783e914fd513620dc779afacaee71c495f (patch) | |
tree | 5025adcabc62a9d0d95257e556000d20bf0ffda2 /src | |
parent | 3fe9adaeb8330df02b63a79a601ac998704fc99b (diff) |
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 <Thomas.Hartmann@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/qml/qqmlcomponent.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp index 1fa1c2382f..df1e7f420e 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 */ |