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)
}
}
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)
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())