summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-03-07 07:25:44 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2011-03-08 00:15:08 (GMT)
commit38a3d51593bb5591c7c4f6d51d7d9fa203b4d56e (patch)
tree495c2444849646c5575db156c03172e99247d370 /src
parent02cde1e6d991d10acd96492d5c5757cf6717ec98 (diff)
downloadQt-38a3d51593bb5591c7c4f6d51d7d9fa203b4d56e.zip
Qt-38a3d51593bb5591c7c4f6d51d7d9fa203b4d56e.tar.gz
Qt-38a3d51593bb5591c7c4f6d51d7d9fa203b4d56e.tar.bz2
Include dynamic parenting use cases in layout mirroring autotests
Task-number: QTBUG-17280 Reviewed-by: Martin Jones Change-Id: Ibbbd2da44d5826b6e499b731eda66b2016bade85
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem_p.h b/src/declarative/graphicsitems/qdeclarativeitem_p.h
index b204d7f..dae581c 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeitem_p.h
@@ -145,10 +145,11 @@ public:
if (parent) {
QDeclarative_setParent_noEvent(q, parent);
q->setParentItem(parent);
+ QDeclarativeItemPrivate *parentPrivate = QDeclarativeItemPrivate::get(parent);
+ setImplicitLayoutMirror(parentPrivate->inheritedLayoutMirror, parentPrivate->inheritMirrorFromParent);
}
baselineOffset.invalidate();
mouseSetsFocus = false;
- resolveLayoutMirror();
}
bool isMirrored() const {