summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-13 18:31:37 (GMT)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-08-13 18:33:06 (GMT)
commitd9634121cf977f6b03c75135ced06d4f038ada1a (patch)
treeea6140c6b9c3794cae9df41ffbf966b0fd81b7b7 /src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
parent548583f449432363fad8fe547ce073bb754d46be (diff)
downloadQt-d9634121cf977f6b03c75135ced06d4f038ada1a.zip
Qt-d9634121cf977f6b03c75135ced06d4f038ada1a.tar.gz
Qt-d9634121cf977f6b03c75135ced06d4f038ada1a.tar.bz2
QGraphicsAnchorLayout: use pickEdge()
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
index d878722..ee2144c 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
@@ -1164,13 +1164,7 @@ void QGraphicsAnchorLayoutPrivate::calculateGraphs(
// objective function.
// Retrieve that path
- QGraphicsAnchorLayout::Edge end;
- if (orientation == Horizontal) {
- end = QGraphicsAnchorLayout::Right;
- } else {
- end = QGraphicsAnchorLayout::Bottom;
- }
- AnchorVertex *v = internalVertex(q, end);
+ AnchorVertex *v = internalVertex(q, pickEdge(QGraphicsAnchorLayout::Right, orientation));
GraphPath trunkPath = graphPaths[orientation].value(v);
if (!trunkConstraints.isEmpty()) {