forked from qt-creator/qt-creator
QmlDesigner: Fix usage of doesLayoutChildren
Change-Id: I23158401eaa869cb258d5e1c6484d52e6760b4c9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -407,7 +407,7 @@ bool QmlItemNode::modelIsInLayout() const
|
||||
&& parentModelNode.metaInfo().isLayoutable())
|
||||
return true;
|
||||
|
||||
return NodeHints::fromModelNode(modelNode()).doesLayoutChildren();
|
||||
return NodeHints::fromModelNode(parentModelNode).doesLayoutChildren();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user