summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2009-10-16 16:10:13 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-10-26 22:17:50 (GMT)
commit73d89d68d5d710e86e6aa74b2924ee4aca11881e (patch)
tree926241f475339350c28a3284c986dd5df8bf1ffc /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parentd4c1a4675bdff63912b31243e5292766ff5215a5 (diff)
downloadQt-73d89d68d5d710e86e6aa74b2924ee4aca11881e.zip
Qt-73d89d68d5d710e86e6aa74b2924ee4aca11881e.tar.gz
Qt-73d89d68d5d710e86e6aa74b2924ee4aca11881e.tar.bz2
QGAL: add orientation bit to the anchor
Use a free bit in the anchor struct to save the orientation information. That way we do not depend on looking for this information in the vertices (by looking the orientation of its edge). Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
index 511e1ec..8525eb3 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
@@ -157,7 +157,7 @@ struct AnchorData : public QSimplexVariable {
sizeAtExpanding(0), sizeAtMaximum(0),
graphicsAnchor(0), skipInPreferred(0),
type(Normal), hasSize(true), isLayoutAnchor(false),
- isCenterAnchor(false) {}
+ isCenterAnchor(false), orientation(0) {}
virtual void updateChildrenSizes() {}
virtual bool refreshSizeHints(qreal effectiveSpacing);
@@ -211,6 +211,7 @@ struct AnchorData : public QSimplexVariable {
uint hasSize : 1; // if false, get size from style.
uint isLayoutAnchor : 1; // if this anchor is connected to a layout 'edge'
uint isCenterAnchor : 1;
+ uint orientation : 1;
};
#ifdef QT_DEBUG