From 6f089aec4e6c396ce45dcab0bd58e2dda23adce1 Mon Sep 17 00:00:00 2001 From: Ian Walters Date: Thu, 23 Apr 2009 15:41:15 +1000 Subject: Adding 'presentation' qml to tutorial steps. Also changed background from black to white so to better match screenshots within documentation. --- .../1_Drawing_and_animation.qml | 19 ++++------ .../contacts/1_Drawing_and_Animation/GroupBox.qml | 17 +++++++++ .../tutorials/contacts/2_Reuse/2_Reuse.qml | 38 ++++--------------- .../tutorials/contacts/2_Reuse/Contact3.qml | 4 +- .../tutorials/contacts/2_Reuse/Contact4.qml | 4 +- .../tutorials/contacts/2_Reuse/ContactField1.qml | 11 +++--- .../tutorials/contacts/2_Reuse/ContactField2.qml | 11 +++--- .../tutorials/contacts/2_Reuse/ContactField3.qml | 5 ++- .../tutorials/contacts/2_Reuse/FieldText3.qml | 14 +++---- .../tutorials/contacts/2_Reuse/FieldText4.qml | 14 +++---- .../tutorials/contacts/2_Reuse/GroupBox.qml | 17 +++++++++ .../contacts/3_Collections/3_Collections.qml | 43 ++++++++++++++++++---- .../contacts/3_Collections/ContactView1.qml | 16 +++++--- .../contacts/3_Collections/ContactView2.qml | 16 +++++--- .../contacts/3_Collections/ContactView3.qml | 16 +++++--- .../tutorials/contacts/3_Collections/FieldText.qml | 22 +++++------ .../tutorials/contacts/3_Collections/GroupBox.qml | 17 +++++++++ .../contacts/3_Collections/RemoveButton.qml | 6 +-- 18 files changed, 181 insertions(+), 109 deletions(-) create mode 100644 examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml create mode 100644 examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml create mode 100644 examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml 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 181ee44..4ea77f3 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,14 +1,9 @@ - - - Rectangle Component - - Closed Remove Item Button - - Open Remove Item Button - - State Based Button - - Animated Button - + + + + + + + diff --git a/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml new file mode 100644 index 0000000..01f26ee --- /dev/null +++ b/examples/declarative/tutorials/contacts/1_Drawing_and_Animation/GroupBox.qml @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml b/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml index 29fdf51..13bc209 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/2_Reuse.qml @@ -1,34 +1,12 @@ - + - - - - - - - - - - - + + + + + + + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/Contact3.qml b/examples/declarative/tutorials/contacts/2_Reuse/Contact3.qml index fdd0c6d..2933437 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/Contact3.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/Contact3.qml @@ -1,4 +1,6 @@ - + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/Contact4.qml b/examples/declarative/tutorials/contacts/2_Reuse/Contact4.qml index b1882da..9e988c0 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/Contact4.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/Contact4.qml @@ -1,4 +1,6 @@ - + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/ContactField1.qml b/examples/declarative/tutorials/contacts/2_Reuse/ContactField1.qml index 5547a3b..7bfdd28 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/ContactField1.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/ContactField1.qml @@ -1,17 +1,18 @@ + color="black" + text="123123"/> diff --git a/examples/declarative/tutorials/contacts/2_Reuse/ContactField2.qml b/examples/declarative/tutorials/contacts/2_Reuse/ContactField2.qml index b69e03c..7ec3e4d 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/ContactField2.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/ContactField2.qml @@ -1,5 +1,6 @@ + color="black" + text="123123"/> diff --git a/examples/declarative/tutorials/contacts/2_Reuse/ContactField3.qml b/examples/declarative/tutorials/contacts/2_Reuse/ContactField3.qml index f3a11f9..cef25ce 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/ContactField3.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/ContactField3.qml @@ -1,9 +1,10 @@ - - + + + color="white"> - - - - + + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/FieldText4.qml b/examples/declarative/tutorials/contacts/2_Reuse/FieldText4.qml index a4df42b..45bb18d 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/FieldText4.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/FieldText4.qml @@ -1,7 +1,7 @@ + color="white"> - - - - + + diff --git a/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml b/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml new file mode 100644 index 0000000..01f26ee --- /dev/null +++ b/examples/declarative/tutorials/contacts/2_Reuse/GroupBox.qml @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml b/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml index ed2a3dc..6907676 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/3_Collections.qml @@ -1,8 +1,37 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/declarative/tutorials/contacts/3_Collections/ContactView1.qml b/examples/declarative/tutorials/contacts/3_Collections/ContactView1.qml index d6f7bad..6606094 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/ContactView1.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/ContactView1.qml @@ -1,4 +1,9 @@ - + + + + @@ -6,10 +11,10 @@ @@ -18,5 +23,6 @@ anchors.fill="{parent}" clip="true" model="{contactList}" - delegate="{contactDelegate}"/> + delegate="{contactDelegate}" + focus="true"/> diff --git a/examples/declarative/tutorials/contacts/3_Collections/ContactView2.qml b/examples/declarative/tutorials/contacts/3_Collections/ContactView2.qml index da1e5db..97868e3 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/ContactView2.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/ContactView2.qml @@ -1,4 +1,9 @@ - + + + + @@ -9,10 +14,10 @@ x="0" width="{ListView.view.width}" height="34"> + delegate="{contactDelegate}" + focus="true"/> diff --git a/examples/declarative/tutorials/contacts/3_Collections/ContactView3.qml b/examples/declarative/tutorials/contacts/3_Collections/ContactView3.qml index a5d88a1..c15ece2 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/ContactView3.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/ContactView3.qml @@ -1,4 +1,9 @@ - + + + + @@ -9,10 +14,10 @@ x="0" width="{ListView.view.width}" height="34"> + delegate="{contactDelegate}" + focus="true"/> diff --git a/examples/declarative/tutorials/contacts/3_Collections/FieldText.qml b/examples/declarative/tutorials/contacts/3_Collections/FieldText.qml index a4df42b..583c73e 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/FieldText.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/FieldText.qml @@ -1,7 +1,7 @@ + color="white"> @@ -48,10 +48,10 @@ src="../shared/pics/ok.png" opacity="0"/> - - - - + + diff --git a/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml b/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml new file mode 100644 index 0000000..01f26ee --- /dev/null +++ b/examples/declarative/tutorials/contacts/3_Collections/GroupBox.qml @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/examples/declarative/tutorials/contacts/3_Collections/RemoveButton.qml b/examples/declarative/tutorials/contacts/3_Collections/RemoveButton.qml index a489e95..493ab7a 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/RemoveButton.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/RemoveButton.qml @@ -14,11 +14,11 @@ print('removeButton.toggle()'); if (removeButton.state == 'opened') { removeButton.state = ''; - page.mouseGrabbed=false; + contacts.mouseGrabbed=false; } else { - if (!page.mouseGrabbed) { + if (!contacts.mouseGrabbed) { removeButton.state = 'opened'; - page.mouseGrabbed=true; + contacts.mouseGrabbed=true; } } } -- cgit v0.12