diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-09 19:42:58 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-07-22 18:04:56 (GMT) |
commit | 7bf639f5484bb5fe34cab53ab1dfde048e158995 (patch) | |
tree | 5c212ab54b4add859ca74e26ae105d711b4656fb /src/gui/graphicsview/qgraphicsanchorlayout_p.h | |
parent | 22a6ce9b329a081d07296533980d374b0c7ad88b (diff) | |
download | Qt-7bf639f5484bb5fe34cab53ab1dfde048e158995.zip Qt-7bf639f5484bb5fe34cab53ab1dfde048e158995.tar.gz Qt-7bf639f5484bb5fe34cab53ab1dfde048e158995.tar.bz2 |
QGraphicsAnchorLayout: Create center edges on demand
Since the previous commit, center anchors are no longer created
when an item is added to the layout.
This commit creates only the required anchors, when needed.
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 9e6c1bc..d036201 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -292,6 +292,7 @@ public: void createLayoutEdges(); void deleteLayoutEdges(); void createItemEdges(QGraphicsLayoutItem *item); + void createCenterAnchors(QGraphicsLayoutItem *item, QGraphicsAnchorLayout::Edge centerEdge); void removeCenterConstraints(QGraphicsLayoutItem *item, Orientation orientation); // helper function used by the 4 API functions |