aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/methodOnListLookup.qml
blob: b6b71794388b18d2997c6ec6db08c58d66e06248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pragma Strict
import QtQml
import TestTypes

QtObject {
    objectName: people[0].getName()
    property list<Person> people: [
        Person {
            name: "no one"
        }
    ]

    function boom() : string {
        return people[1].getName()
    }
}