aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/listAssignmentSignals.qml
blob: 8a2c68ab5d1bd2e40dc41d9f00fdf777b4361a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQuick 2.0

Item {
    property int signalCounter: 0
    property list<QtObject> sourceList: [ QtObject{}, QtObject{}, QtObject{} ]
    property list<QtObject> targetList1: sourceList

    onTargetList1Changed: signalCounter++

    function assignList() {
        targetList1 = sourceList
    }
}