summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-11 11:49:29 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 18:04:28 (GMT)
commita41ac791921329c33947a0748d76683868a9bbf6 (patch)
treee9d2f13b0365987abba2f069875e902e0bd95f2b /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parent07cac98dddb5bf3f4c6705d53ef240abcf6e8e90 (diff)
downloadQt-a41ac791921329c33947a0748d76683868a9bbf6.zip
Qt-a41ac791921329c33947a0748d76683868a9bbf6.tar.gz
Qt-a41ac791921329c33947a0748d76683868a9bbf6.tar.bz2
Improved sequential simplification. Added restoreSimplifiedGraph().
See comment in simplifyGraph on how the overall approach is. There are still outstanding issues: 1. Simplify parallel anchors 2. Use linear layout to distribute sequential anchors.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
index 71c00a2..f945cf7 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
@@ -183,6 +183,7 @@ struct SequentialAnchorData : public AnchorData
{
SequentialAnchorData() : AnchorData(AnchorData::Sequential) {}
QVector<AnchorVertex*> m_children; // list of vertices in the sequence
+ QVector<AnchorData*> m_edges; // keep the list of edges too.
};
struct ParallelAnchorData : public AnchorData
@@ -294,6 +295,7 @@ public:
// Activation methods
void simplifyGraph(Orientation orientation);
+ void restoreSimplifiedGraph(Orientation orientation);
void calculateGraphs();
void calculateGraphs(Orientation orientation);
void setAnchorSizeHintsFromItems(Orientation orientation);