diff options
author | Martin Jones <martin.jones@nokia.com> | 2012-05-08 11:41:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-09 00:56:16 +0200 |
commit | 3b04bbde6356797368114fce1b45b85271e9fed8 (patch) | |
tree | 05147265a236c1e6966c7385a97cdbc5e09ed68b /src/qml/qml/qqmlcomponent.cpp | |
parent | e7b5ab4a57c8a0177384d31b836219248f0309d5 (diff) |
Add documentation/links for incubateObject
Change-Id: I0ba05f513c6e11451b49848eb69e4b579e75f9a4
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlcomponent.cpp')
-rw-r--r-- | src/qml/qml/qqmlcomponent.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp index e5c498a662..e904188d4f 100644 --- a/src/qml/qml/qqmlcomponent.cpp +++ b/src/qml/qml/qqmlcomponent.cpp @@ -1075,6 +1075,8 @@ static void QQmlComponent_setQmlParent(QObject *me, QObject *parent) Dynamically created instances can be deleted with the \c destroy() method. See \l {Dynamic Object Management in QML} for more information. + + \sa incubateObject() */ void QQmlComponent::createObject(QQmlV8Function *args) { @@ -1137,7 +1139,7 @@ void QQmlComponent::createObject(QQmlV8Function *args) } /*! - \qmlmethod object Component::incubateObject(Item parent, object properties, enum mode) + \qmlmethod object Component::incubateObject(Item parent, object properties, enumeration mode) Creates an incubator for instance of this component. Incubators allow new component instances to be instantiated asynchronously and not cause freezes in the UI. @@ -1185,6 +1187,11 @@ void QQmlComponent::createObject(QQmlV8Function *args) print ("Object", incubator.object, "is ready immediately!"); } \endjs + + Dynamically created instances can be deleted with the \c destroy() method. + See \l {Dynamic Object Management in QML} for more information. + + \sa createObject() */ void QQmlComponent::incubateObject(QQmlV8Function *args) |