From a0d27513f4eff3f76fd85e6442aca443b7c05a53 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 17 Jan 2014 19:33:29 +0100 Subject: whitespace fixes remove trailing spaces & expand tabs Change-Id: Ia088c8cc8a83d068f6e2ec84903b5220cd3411f1 Reviewed-by: Alan Alpert Reviewed-by: Oswald Buddenhagen --- .../qml/highlight/content/RecipesModel.qml | 108 ++++++++++----------- .../highlight/qml/highlight/dynamiclist.qml | 12 +-- .../highlight/qml/highlight/expandingdelegates.qml | 2 +- .../listview/highlight/qml/highlight/highlight.qml | 2 +- .../highlight/qml/highlight/highlightranges.qml | 4 +- .../listview/highlight/qml/highlight/sections.qml | 2 +- 6 files changed, 65 insertions(+), 65 deletions(-) (limited to 'examples/declarative/modelviews/listview/highlight/qml') diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/content/RecipesModel.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/content/RecipesModel.qml index 8cdfb986..7440e359 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/content/RecipesModel.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/content/RecipesModel.qml @@ -44,20 +44,20 @@ ListModel { ListElement { title: "Pancakes" picture: "content/pics/pancakes.jpg" - ingredients: " -
    -
  • 1 cup (150g) self-raising flour -
  • 1 tbs caster sugar -
  • 3/4 cup (185ml) milk -
  • 1 egg -
+ ingredients: " +
    +
  • 1 cup (150g) self-raising flour +
  • 1 tbs caster sugar +
  • 3/4 cup (185ml) milk +
  • 1 egg +
" - method: " -
    -
  1. Sift flour and sugar together into a bowl. Add a pinch of salt. -
  2. Beat milk and egg together, then add to dry ingredients. Beat until smooth. -
  3. Pour mixture into a pan on medium heat and cook until bubbles appear on the surface. -
  4. Turn over and cook other side until golden. + method: " +
      +
    1. Sift flour and sugar together into a bowl. Add a pinch of salt. +
    2. Beat milk and egg together, then add to dry ingredients. Beat until smooth. +
    3. Pour mixture into a pan on medium heat and cook until bubbles appear on the surface. +
    4. Turn over and cook other side until golden.
    " } @@ -70,60 +70,60 @@ ListModel { ListElement { title: "Vegetable Soup" picture: "content/pics/vegetable-soup.jpg" - ingredients: " -
      -
    • 1 onion -
    • 1 turnip -
    • 1 potato -
    • 1 carrot -
    • 1 head of celery -
    • 1 1/2 litres of water -
    + ingredients: " +
      +
    • 1 onion +
    • 1 turnip +
    • 1 potato +
    • 1 carrot +
    • 1 head of celery +
    • 1 1/2 litres of water +
    " - method: " -
      -
    1. Chop vegetables. -
    2. Boil in water until vegetables soften. -
    3. Season with salt and pepper to taste. -
    + method: " +
      +
    1. Chop vegetables. +
    2. Boil in water until vegetables soften. +
    3. Season with salt and pepper to taste. +
    " } ListElement { title: "Hamburger" picture: "content/pics/hamburger.jpg" - ingredients: " -
      -
    • 500g minced beef -
    • Seasoning -
    • lettuce, tomato, onion, cheese -
    • 1 hamburger bun for each burger -
    + ingredients: " +
      +
    • 500g minced beef +
    • Seasoning +
    • lettuce, tomato, onion, cheese +
    • 1 hamburger bun for each burger +
    " - method: " -
      -
    1. Mix the beef, together with seasoning, in a food processor. -
    2. Shape the beef into burgers. -
    3. Grill the burgers for about 5 mins on each side (until cooked through) -
    4. Serve each burger on a bun with ketchup, cheese, lettuce, tomato and onion. -
    + method: " +
      +
    1. Mix the beef, together with seasoning, in a food processor. +
    2. Shape the beef into burgers. +
    3. Grill the burgers for about 5 mins on each side (until cooked through) +
    4. Serve each burger on a bun with ketchup, cheese, lettuce, tomato and onion. +
    " } ListElement { title: "Lemonade" picture: "content/pics/lemonade.jpg" - ingredients: " -
      -
    • 1 cup Lemon Juice -
    • 1 cup Sugar -
    • 6 Cups of Water (2 cups warm water, 4 cups cold water) -
    + ingredients: " +
      +
    • 1 cup Lemon Juice +
    • 1 cup Sugar +
    • 6 Cups of Water (2 cups warm water, 4 cups cold water) +
    " - method: " -
      -
    1. Pour 2 cups of warm water into a pitcher and stir in sugar until it dissolves. -
    2. Pour in lemon juice, stir again, and add 4 cups of cold water. -
    3. Chill or serve over ice cubes. -
    + method: " +
      +
    1. Pour 2 cups of warm water into a pitcher and stir in sugar until it dissolves. +
    2. Pour in lemon juice, stir again, and add 4 cups of cold water. +
    3. Chill or serve over ice cubes. +
    " } } diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/dynamiclist.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/dynamiclist.qml index 3712d69c..8ec75118 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/dynamiclist.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/dynamiclist.qml @@ -84,7 +84,7 @@ Rectangle { // The delegate for each fruit in the model: Component { id: listDelegate - + Item { id: delegateItem width: listView.width; height: 55 @@ -107,7 +107,7 @@ Rectangle { Column { anchors.verticalCenter: parent.verticalCenter - Text { + Text { text: name font.pixelSize: 15 color: "white" @@ -133,7 +133,7 @@ Rectangle { onClicked: fruitModel.setProperty(index, "cost", cost + 0.25) } - Text { + Text { id: costText anchors.verticalCenter: parent.verticalCenter text: '$' + Number(cost).toFixed(2) @@ -183,7 +183,7 @@ Rectangle { anchors { left: parent.left; bottom: parent.bottom; margins: 20 } spacing: 10 - TextButton { + TextButton { text: "Add an item" onClicked: { fruitModel.append({ @@ -194,8 +194,8 @@ Rectangle { } } - TextButton { - text: "Remove all items" + TextButton { + text: "Remove all items" onClicked: fruitModel.clear() } } diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/expandingdelegates.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/expandingdelegates.qml index 5a90bdf8..8c0ab9db 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/expandingdelegates.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/expandingdelegates.qml @@ -101,7 +101,7 @@ Rectangle { width: background.width - recipeImage.width - 20; height: recipeImage.height spacing: 5 - Text { + Text { text: title font.bold: true; font.pointSize: 16 } diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml index df693613..6f447dca 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlight.qml @@ -68,7 +68,7 @@ Rectangle { PropertyChanges { target: wrapper; x: 20 } } transitions: Transition { - NumberAnimation { properties: "x"; duration: 200 } + NumberAnimation { properties: "x"; duration: 200 } } } } diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlightranges.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlightranges.qml index f2f767f4..1935a6ff 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/highlightranges.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/highlightranges.qml @@ -46,8 +46,8 @@ Rectangle { property int current: 0 width: 600; height: 300 - // This example shows the same model in three different ListView items, - // with different highlight ranges. The highlight ranges are set by the + // This example shows the same model in three different ListView items, + // with different highlight ranges. The highlight ranges are set by the // preferredHighlightBegin and preferredHighlightEnd properties in ListView. // // The first ListView does not set a highlight range, so its currentItem diff --git a/examples/declarative/modelviews/listview/highlight/qml/highlight/sections.qml b/examples/declarative/modelviews/listview/highlight/qml/highlight/sections.qml index 52240794..bb0f0b2c 100644 --- a/examples/declarative/modelviews/listview/highlight/qml/highlight/sections.qml +++ b/examples/declarative/modelviews/listview/highlight/qml/highlight/sections.qml @@ -59,7 +59,7 @@ Rectangle { } // The delegate for each section header - Component { + Component { id: sectionHeading Rectangle { width: container.width -- cgit v1.2.3