diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2011-02-14 07:42:03 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2011-02-15 04:37:57 (GMT) |
commit | b428301a2af0a68ff40d75003ed85aafb19f03f7 (patch) | |
tree | 3adffd7b9ba10f0a45590f32cfbcb0c0d1793166 /src/declarative/graphicsitems/qdeclarativeanchors_p_p.h | |
parent | 44e358047d60aa31f568a120a97dfe36f150d7e0 (diff) | |
download | Qt-b428301a2af0a68ff40d75003ed85aafb19f03f7.zip Qt-b428301a2af0a68ff40d75003ed85aafb19f03f7.tar.gz Qt-b428301a2af0a68ff40d75003ed85aafb19f03f7.tar.bz2 |
Add support for anchor mirroring
Task-number: QTBUG-15879
Reviewed-by: Michael Brasser
Change-Id: I833132153ba95437a86bb840a96d5507612d3fa8
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeanchors_p_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeanchors_p_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeanchors_p_p.h b/src/declarative/graphicsitems/qdeclarativeanchors_p_p.h index c4508e0..ec96582 100644 --- a/src/declarative/graphicsitems/qdeclarativeanchors_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeanchors_p_p.h @@ -94,7 +94,7 @@ public: : componentComplete(true), updatingMe(false), updatingHorizontalAnchor(0), updatingVerticalAnchor(0), updatingFill(0), updatingCenterIn(0), item(i), usedAnchors(0), fill(0), centerIn(0), leftMargin(0), rightMargin(0), topMargin(0), bottomMargin(0), - margins(0), vCenterOffset(0), hCenterOffset(0), baselineOffset(0) + margins(0), vCenterOffset(0), hCenterOffset(0), baselineOffset(0), layoutDirection(Qt::LeftToRight) { } @@ -133,6 +133,7 @@ public: bool checkVAnchorValid(QDeclarativeAnchorLine anchor) const; bool calcStretch(const QDeclarativeAnchorLine &edge1, const QDeclarativeAnchorLine &edge2, qreal offset1, qreal offset2, QDeclarativeAnchorLine::AnchorLine line, qreal &stretch); + bool isMirrored() const; void updateHorizontalAnchors(); void updateVerticalAnchors(); void fillChanged(); @@ -160,6 +161,8 @@ public: qreal vCenterOffset; qreal hCenterOffset; qreal baselineOffset; + + Qt::LayoutDirection layoutDirection; }; QT_END_NAMESPACE |