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_p.h | |
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_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h index d036201..2f1aa97 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -293,6 +293,7 @@ public: void deleteLayoutEdges(); void createItemEdges(QGraphicsLayoutItem *item); void createCenterAnchors(QGraphicsLayoutItem *item, QGraphicsAnchorLayout::Edge centerEdge); + void removeCenterAnchors(QGraphicsLayoutItem *item, QGraphicsAnchorLayout::Edge centerEdge); void removeCenterConstraints(QGraphicsLayoutItem *item, Orientation orientation); // helper function used by the 4 API functions |