diff options
Diffstat (limited to 'doc/src/snippets/declarative/models/views-models-delegates.qml')
-rw-r--r-- | doc/src/snippets/declarative/models/views-models-delegates.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/models/views-models-delegates.qml b/doc/src/snippets/declarative/models/views-models-delegates.qml index 1ad7c1e..9cc7c67 100644 --- a/doc/src/snippets/declarative/models/views-models-delegates.qml +++ b/doc/src/snippets/declarative/models/views-models-delegates.qml @@ -62,9 +62,10 @@ Rectangle { 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 } } } |