From 3b5173b82635141ae0fc805ecbdbef6194f480be Mon Sep 17 00:00:00 2001 From: David Fries Date: Wed, 8 May 2013 00:14:25 -0500 Subject: Doc: corrections, spelling, and ListView requirements comments From the ListView comment I thought the model had to be derived from QAbstractListModel, but that's not the case, QAbstractListModel will work just fine, it just doesn't support specific cases such as trees. Change-Id: I59305006540ddc049e276cf412571373cbfa6c67 Reviewed-by: Jerome Pasion Reviewed-by: Gunnar Sletta --- src/qml/qml/qqmlcomponent.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/qml/qml') diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp index 73f778e86a..ccef0a6bb6 100644 --- a/src/qml/qml/qqmlcomponent.cpp +++ b/src/qml/qml/qqmlcomponent.cpp @@ -1226,9 +1226,8 @@ void QQmlComponent::createObject(QQmlV8Function *args) instances to be instantiated asynchronously and not cause freezes in the UI. The \a parent argument specifies the parent the created instance will have. Omitting the - parameter or passing null will create anobject with no parent. In this case, a reference - to the created object must be maintained by the application of the object will eventually - be garbage collected. + parameter or passing null will create an object with no parent. In this case, a reference + to the created object must be held so that it is not destroyed by the garbage collector. The \a properties argument is specified as a map of property-value items which will be set on the created object during its construction. \a mode may be Qt.Synchronous or -- cgit v1.2.3