Remove warning produced by 'parent' reference.
authorMatthew Vogt <matthew.vogt@nokia.com>
Thu, 23 Feb 2012 04:55:16 +0000 (14:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Feb 2012 06:02:04 +0000 (07:02 +0100)
commitdc3165178851b9bda71dd238c8a5faca4dfa7a45
tree40878590bc6c6299d454fec42a630d334461fd84
parentbbbc44c45d9a6b7381b775413fcfcc1a72c14317
Remove warning produced by 'parent' reference.

When Qt.createQmlObject is invoked from QML, any contained references
to parent produce a warning from V8.  To prevent this, move the
assignment of the parent object to before the initial execution of the
bindings.

Task-number: QTBUG-24464
Change-Id: Ib330822f1ca46ec5a6af648a56197da09669c3f2
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/qml/v8/qdeclarativebuiltinfunctions.cpp
tests/auto/declarative/qdeclarativecomponent/data/createParentReference.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp