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

QtObject {
    id: self
    property list<QtObject> items
    property int numItems: items.length

    Component.onCompleted: {
        items.length = 3
        for (var i = 0; i < 3; ++i)
            items[i] = self
    }
}