QmlJS: Fix completion for 'anchors.' and similar properties.

The detection of whether a type or one of its children is exported was
broken when we fixed the type information for the QtQuick module.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-10-27 16:51:55 +02:00
committed by con
parent 2be41c4046
commit 8cd68b3b06

View File

@@ -933,7 +933,8 @@ bool QmlObjectValue::hasChildInPackage() const
while (it.hasNext()) {
it.next();
const FakeMetaObject *other = it.value()->_metaObject;
if (other->exports().isEmpty())
// if it has only the default no-package export, it is not really exported
if (other->exports().size() <= 1)
continue;
for (const FakeMetaObject *iter = other; iter; iter = iter->superClass()) {
if (iter == _metaObject) // this object is a parent of other