diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-14 21:40:35 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-22 18:04:57 (GMT) |
commit | a52114c8ca9020773081c20a1094c078cfdb81fe (patch) | |
tree | bdd5c4d0cddd0b990dd9efe10a9287ab81a07b6e /src/gui/graphicsview/qgraphicsanchorlayout.cpp | |
parent | 7bf639f5484bb5fe34cab53ab1dfde048e158995 (diff) | |
download | Qt-a52114c8ca9020773081c20a1094c078cfdb81fe.zip Qt-a52114c8ca9020773081c20a1094c078cfdb81fe.tar.gz Qt-a52114c8ca9020773081c20a1094c078cfdb81fe.tar.bz2 |
QGraphicsAnchorLayout: Remove center anchors when not needed
Continuing the effort to enforcing center anchors to exist only
when needed, this commit removes the central anchors when they
are no longer used.
Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp index 31cc911..fe335e8 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp @@ -200,6 +200,8 @@ void QGraphicsAnchorLayout::removeAnchor(QGraphicsLayoutItem *firstItem, Edge fi } d->removeAnchor(firstItem, firstEdge, secondItem, secondEdge); + d->removeCenterAnchors(firstItem, firstEdge); + d->removeCenterAnchors(secondItem, secondEdge); invalidate(); } |