There are "TypeError" errors.
When using ListView.view in a delegate, the id of child of delegate has to
attach in front of ListView.view to access the model and its properties in this case.
Change-Id: I4610f1fc8b0d085f7cba137e76e0578be7b51e23
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Component {
id: fruitDelegate
Row {
- Text { text: " Fruit: " + name; color: ListView.view.fruit_color }
+ id: fruit
+ Text { text: " Fruit: " + name; color: fruit.ListView.view.fruit_color }
Text { text: " Cost: $" + cost }
- Text { text: " Language: " + ListView.view.model.language }
+ Text { text: " Language: " + fruit.ListView.view.model.language }
}
}