diff options
author | Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> | 2009-09-15 20:10:32 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-17 11:58:10 (GMT) |
commit | ecb7f47897049014d2956396d5634e3d418bdcb9 (patch) | |
tree | a6df93f66616162d9e0112e825fd311031cd3f4b /src/gui/graphicsview/qgraphicsanchorlayout_p.h | |
parent | 6cadb9004c10ca3b7b69311c1f885d60ed2afe8b (diff) | |
download | Qt-ecb7f47897049014d2956396d5634e3d418bdcb9.zip Qt-ecb7f47897049014d2956396d5634e3d418bdcb9.tar.gz Qt-ecb7f47897049014d2956396d5634e3d418bdcb9.tar.bz2 |
QGraphicsAnchorLayoutPrivate: Removing item from layout when there are no more anchors
Now the removeAnchor() method has returned and it is ready for being use in the API for ensure
that items are removed from the layout when they have no more external anchors.
Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-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 89b49af..5a91baa 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -420,6 +420,7 @@ public: QGraphicsAnchor *getAnchor(QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge); + void removeAnchor(AnchorVertex *firstVertex, AnchorVertex *secondVertex); void removeAnchor_helper(AnchorVertex *v1, AnchorVertex *v2); void deleteAnchorData(AnchorData *data); void setAnchorSize(AnchorData *data, const qreal *anchorSize); |