More consistent coding style through QML documentation.
authorYann Bodson <yann.bodson@nokia.com>
Fri, 20 Jul 2012 02:34:10 +0000 (12:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jul 2012 03:35:13 +0000 (05:35 +0200)
Change-Id: Ieeda1b22d30917dc9614b34d6ae4d41e0062478b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/qml/doc/src/syntax/objectattributes.qdoc
src/qml/doc/src/typesystem/basictypes.qdoc
src/qml/doc/src/typesystem/topic.qdoc

index 22b9eef..f199b6a 100644 (file)
@@ -865,7 +865,7 @@ ListView {
     model: ListModel {
         id: listModel
         Component.onCompleted: {
-            for (var i=0; i<10; i++)
+            for (var i = 0; i < 10; i++)
                 listModel.append({"Name": "Item " + i})
         }
     }
index a6c5a8b..98f330c 100644 (file)
@@ -637,7 +637,7 @@ property is only invoked when the property is reassigned to a different object v
 
         Component.onCompleted: {
             console.log("Name of first state:", states[0].name)
-            for (var i=0; i<states.length; i++)
+            for (var i = 0; i < states.length; i++)
                 console.log("state", i, states[i].name)
         }
     }
@@ -850,7 +850,7 @@ property is only invoked when the property is reassigned to a different object v
         property variant attributes: { 'color': 'red', 'width': 100 }
 
         Component.onCompleted: {
-            for (var i=0; i<items.length; i++)
+            for (var i = 0; i < items.length; i++)
                 console.log(items[i])
 
             for (var prop in attributes)
index d97f406..decfdb4 100644 (file)
@@ -74,7 +74,7 @@ Item {
     property var theDate: new Date()
 
     Component.onCompleted: {
-        for (var i=0; i<10; i++)
+        for (var i = 0; i < 10; i++)
             theArray.push("Item " + i)
         console.log("There are", theArray.length, "items in the array")
         console.log("The time is", theDate.toUTCString())