summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-11-05 22:18:48 (GMT)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-11-06 18:17:07 (GMT)
commit720e04ac5f572c1ca0a32e1675fbda6e778d3e8c (patch)
treeb003a72b102cccffd3ab849d8aa8411151c59203 /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parent8ee95e63a92b07ba89003243b0e93718762a7d88 (diff)
downloadQt-720e04ac5f572c1ca0a32e1675fbda6e778d3e8c.zip
Qt-720e04ac5f572c1ca0a32e1675fbda6e778d3e8c.tar.gz
Qt-720e04ac5f572c1ca0a32e1675fbda6e778d3e8c.tar.bz2
QGAL: Revamp the edge interpolation code
Simplify the code of interpolateSequentialAnchor to use the distance values of the sequential anchor itself as base for the children distances. So the 'base' parameter was removed. This also allowed out-of-order parallel anchors to be interpolated, and the 'base' parameter also to be removed from interpolateParallelAnchor. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
index 8d77b1a..d8e62b4 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
@@ -475,10 +475,8 @@ public:
void calculateVertexPositions(Orientation orientation);
void setupEdgesInterpolation(Orientation orientation);
void interpolateEdge(AnchorVertex *base, AnchorData *edge, Orientation orientation);
- void interpolateSequentialEdges(AnchorVertex *base, SequentialAnchorData *edge,
- Orientation orientation);
- void interpolateParallelEdges(AnchorVertex *base, ParallelAnchorData *edge,
- Orientation orientation);
+ void interpolateSequentialEdges(SequentialAnchorData *edge, Orientation orientation);
+ void interpolateParallelEdges(ParallelAnchorData *edge, Orientation orientation);
// Linear Programming solver methods
bool solveMinMax(const QList<QSimplexConstraint *> &constraints,