QmlDesigner.anchors: avoid recursion

Since instances are asynchronius now, we cannot
rely on instance feedback (for e.g. fill).

This beautification code has to be rewritten using the model.

Reviewed-by: Kai Koehne
This commit is contained in:
Thomas Hartmann
2011-03-23 17:38:09 +01:00
parent 6161d0eb0c
commit 1c61320f9e

View File

@@ -136,7 +136,7 @@ bool QmlAnchors::isValid() const
void QmlAnchors::beautify() void QmlAnchors::beautify()
{ {
return;
if ((instanceHasAnchor(AnchorLine::Left) && if ((instanceHasAnchor(AnchorLine::Left) &&
instanceHasAnchor(AnchorLine::Right) && instanceHasAnchor(AnchorLine::Right) &&
instanceHasAnchor(AnchorLine::Top) && instanceHasAnchor(AnchorLine::Top) &&