Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / examples / declarative / modelviews / listview / content / RecipesModel.qml
1 /****************************************************************************
2 **
3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the examples of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:BSD$
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
14 ** met:
15 **   * Redistributions of source code must retain the above copyright
16 **     notice, this list of conditions and the following disclaimer.
17 **   * Redistributions in binary form must reproduce the above copyright
18 **     notice, this list of conditions and the following disclaimer in
19 **     the documentation and/or other materials provided with the
20 **     distribution.
21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 **     the names of its contributors may be used to endorse or promote
23 **     products derived from this software without specific prior written
24 **     permission.
25 **
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40
41 import QtQuick 1.0
42
43 ListModel {
44     ListElement {
45         title: "Pancakes"
46         picture: "content/pics/pancakes.jpg"
47         ingredients: "<html> 
48                        <ul> 
49                         <li> 1 cup (150g) self-raising flour 
50                         <li> 1 tbs caster sugar 
51                         <li> 3/4 cup (185ml) milk 
52                         <li> 1 egg 
53                        </ul> 
54                       </html>"
55         method: "<html> 
56                   <ol> 
57                    <li> Sift flour and sugar together into a bowl. Add a pinch of salt. 
58                    <li> Beat milk and egg together, then add to dry ingredients. Beat until smooth. 
59                    <li> Pour mixture into a pan on medium heat and cook until bubbles appear on the surface. 
60                    <li> Turn over and cook other side until golden.  
61                   </ol>
62                  </html>"
63     }
64     ListElement {
65         title: "Fruit Salad"
66         picture: "content/pics/fruit-salad.jpg"
67         ingredients: "* Seasonal Fruit"
68         method: "* Chop fruit and place in a bowl."
69     }
70     ListElement {
71         title: "Vegetable Soup"
72         picture: "content/pics/vegetable-soup.jpg"
73         ingredients: "<html> 
74                        <ul> 
75                         <li> 1 onion 
76                         <li> 1 turnip 
77                         <li> 1 potato 
78                         <li> 1 carrot 
79                         <li> 1 head of celery 
80                         <li> 1 1/2 litres of water 
81                        </ul> 
82                       </html>"
83         method: "<html> 
84                   <ol> 
85                    <li> Chop vegetables. 
86                    <li> Boil in water until vegetables soften. 
87                    <li> Season with salt and pepper to taste. 
88                   </ol> 
89                  </html>"
90     }
91     ListElement {
92         title: "Hamburger"
93         picture: "content/pics/hamburger.jpg"
94         ingredients: "<html> 
95                        <ul> 
96                         <li> 500g minced beef 
97                         <li> Seasoning 
98                         <li> lettuce, tomato, onion, cheese 
99                         <li> 1 hamburger bun for each burger 
100                        </ul> 
101                       </html>"
102         method: "<html> 
103                   <ol> 
104                    <li> Mix the beef, together with seasoning, in a food processor. 
105                    <li> Shape the beef into burgers. 
106                    <li> Grill the burgers for about 5 mins on each side (until cooked through) 
107                    <li> Serve each burger on a bun with ketchup, cheese, lettuce, tomato and onion. 
108                   </ol> 
109                  </html>"
110     }
111     ListElement {
112         title: "Lemonade"
113         picture: "content/pics/lemonade.jpg"
114         ingredients: "<html> 
115                        <ul> 
116                         <li> 1 cup Lemon Juice 
117                         <li> 1 cup Sugar 
118                         <li> 6 Cups of Water (2 cups warm water, 4 cups cold water) 
119                        </ul> 
120                       </html>"
121         method: "<html> 
122                   <ol> 
123                    <li> Pour 2 cups of warm water into a pitcher and stir in sugar until it dissolves. 
124                    <li> Pour in lemon juice, stir again, and add 4 cups of cold water. 
125                    <li> Chill or serve over ice cubes. 
126                   </ol> 
127                  </html>"
128     }
129 }