diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-05-28 23:27:11 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-22 18:04:18 (GMT) |
commit | 4cecce2273d45e42136f70d3ae6453aa37e1d934 (patch) | |
tree | ec562086a4ff5d9540b2d8bf3054b6598acce009 /src/gui/graphicsview/qgraphicsanchorlayout_p.h | |
parent | bf3de451f1532e10aef53b185120ae8d452c55aa (diff) | |
download | Qt-4cecce2273d45e42136f70d3ae6453aa37e1d934.zip Qt-4cecce2273d45e42136f70d3ae6453aa37e1d934.tar.gz Qt-4cecce2273d45e42136f70d3ae6453aa37e1d934.tar.bz2 |
QGraphicsAnchorLayout: Delete center constraints on item removal
Each time an item is added to the layout, center constraits are
created to ensure its internal anchors keep their size equal.
To avoid memory leaks, we must delete them when the item is
removed.
Signed-off-by: Eduardo M. Fleury <eduardo.fleury@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 27855e6..6370f4a 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -233,6 +233,7 @@ public: void createLayoutEdges(); void deleteLayoutEdges(); void createItemEdges(QGraphicsLayoutItem *item); + void removeCenterConstraints(QGraphicsLayoutItem *item, Orientation orientation); // Anchor Manipulation methods void addAnchor(QGraphicsLayoutItem *firstItem, |