Fix component boundary detection
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 23 Sep 2013 13:58:30 +0000 (15:58 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 25 Sep 2013 11:13:30 +0000 (13:13 +0200)
commit5c6534773f5329d6245891879ff2eb5f82b1f2a0
tree0cd0500256f77920ae3982c9938f3cc2fdfa5a3f
parentb3449f333bede37d6eaf24a1abc0d746e5b4b1a7
Fix component boundary detection

For a component boundary, the type in question has to be an actual
QQmlComponent. If it's a type that itself is derived from a component (type ==
0 && component != 0 in typereference), then it is not a boundary.

Fixes tst_qqmllanguage::componentCompositeType

Change-Id: I938abe94c2fa4c69788176235ac74d0c6e385c0c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp
src/qml/qml/qqmlobjectcreator_p.h