diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-13 18:31:37 (GMT) |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2009-08-13 18:33:06 (GMT) |
commit | d9634121cf977f6b03c75135ced06d4f038ada1a (patch) | |
tree | ea6140c6b9c3794cae9df41ffbf966b0fd81b7b7 /src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | |
parent | 548583f449432363fad8fe547ce073bb754d46be (diff) | |
download | Qt-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.cpp | 8 |
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()) { |