diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-04-23 03:44:53 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-04-23 03:44:53 (GMT) |
commit | 97ec205d5732cb6e028fccc8b2423a6c0f15734b (patch) | |
tree | 9aa5c98fd2368ef04ebb60af0c74b551d79c114f /examples | |
parent | 5c532f8bcb183e70bca39471edd2183c8e400f25 (diff) | |
download | Qt-97ec205d5732cb6e028fccc8b2423a6c0f15734b.zip Qt-97ec205d5732cb6e028fccc8b2423a6c0f15734b.tar.gz Qt-97ec205d5732cb6e028fccc8b2423a6c0f15734b.tar.bz2 |
First draft chapter 1 of tutorial: complete.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml index 06c9f5a..181ee44 100644 --- a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml +++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/1_Drawing_and_animation.qml @@ -1,22 +1,14 @@ -<Rect id="page" width="240" height="180" color='black'> - <RemoveButton1 - y="5" - anchors.right="{page.right}" - anchors.rightMargin="5"/> - <RemoveButton2 - y="40" - anchors.right="{page.right}" - anchors.rightMargin="5"/> - <RemoveButton3 - y="75" - anchors.right="{page.right}" - anchors.rightMargin="5"/> - <RemoveButton4 - y="110" - anchors.right="{page.right}" - anchors.rightMargin="5"/> - <RemoveButton5 - y="145" - anchors.right="{page.right}" - anchors.rightMargin="5"/> +<Rect id="page" width="240" height="{layout.height}" color='white'> + <VerticalLayout id="layout" margin="5" spacing="5"> + <Text x="5" width="230">Rectangle Component</Text> + <RemoveButton1 anchors.right="{parent.right}"/> + <Text x="5" width="230">Closed Remove Item Button</Text> + <RemoveButton2 anchors.right="{parent.right}"/> + <Text x="5" width="230">Open Remove Item Button</Text> + <RemoveButton3 anchors.right="{parent.right}"/> + <Text x="5" width="230">State Based Button</Text> + <RemoveButton4 anchors.right="{parent.right}"/> + <Text x="5" width="230">Animated Button</Text> + <RemoveButton5 anchors.right="{parent.right}"/> + </VerticalLayout> </Rect> |