forked from qt-creator/qt-creator
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:
@@ -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) &&
|
||||||
|
Reference in New Issue
Block a user