aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistreference/data/listIgnoresNull.qml
blob: 35c8d66dad748ccf0913a2864fb0c59856fa7c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.7
import Test

Item {
    id: root

    TestItem {
        id: testItem
    }

    Component.onCompleted : {
        testItem.data.push(null);
        testItem.data.length = 5;
        testItem.data.unshift(null);

        var state = Qt.createQmlObject( "import QtQuick 2.7; State{ name: 'MyState' }", root, "dynamicState" );
        root.states.length = 5;
        root.states.push(null);
        root.states.unshift(state);
    }
}