diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-11-17 06:40:29 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-11-17 06:40:29 (GMT) |
commit | 00ba769bd417ff005a5e9854bfcc5dbd0acd9848 (patch) | |
tree | ac0d7116d50c0251f8d2551401bb16c6001b8e2d /tests/auto/declarative/states/data/anchorChanges5.qml | |
parent | d4f2c30ba3ab70a3f40fb7699a6924c1155c83d3 (diff) | |
download | Qt-00ba769bd417ff005a5e9854bfcc5dbd0acd9848.zip Qt-00ba769bd417ff005a5e9854bfcc5dbd0acd9848.tar.gz Qt-00ba769bd417ff005a5e9854bfcc5dbd0acd9848.tar.bz2 |
AnchorChanges autotests
Diffstat (limited to 'tests/auto/declarative/states/data/anchorChanges5.qml')
-rw-r--r-- | tests/auto/declarative/states/data/anchorChanges5.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/states/data/anchorChanges5.qml b/tests/auto/declarative/states/data/anchorChanges5.qml new file mode 100644 index 0000000..ef5f041 --- /dev/null +++ b/tests/auto/declarative/states/data/anchorChanges5.qml @@ -0,0 +1,22 @@ +import Qt 4.6 + +Rectangle { + width: 200; height: 200 + Rectangle { + id: MyRect + objectName: "MyRect" + color: "green"; + anchors.horizontalCenter: parent.horizontalCenter + anchors.baseline: parent.baseline + } + Item { objectName: "LeftGuideline"; id: LeftGuideline; x: 10 } + Item { objectName: "BottomGuideline"; id: BottomGuideline; y: 150 } + states: State { + name: "reanchored" + AnchorChanges { + target: MyRect; + horizontalCenter: BottomGuideline.horizontalCenter + baseline: LeftGuideline.baseline + } + } +} |