summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-09 19:42:58 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 18:04:56 (GMT)
commit7bf639f5484bb5fe34cab53ab1dfde048e158995 (patch)
tree5c212ab54b4add859ca74e26ae105d711b4656fb /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parent22a6ce9b329a081d07296533980d374b0c7ad88b (diff)
downloadQt-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.h1
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