aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeconnection/data/connection-targetchange.qml
blob: dd92cb9c67175770255a47bfb0fa6fbce96ced18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick 1.0

Item {
    Component {
        id: item1
        Item {
            objectName: "item1"
        }
    }
    Component {
        id: item2
        Item {
            objectName: "item2"
        }
    }
    Loader {
        id: loader
        sourceComponent: item1
    }
    Connections {
        objectName: "connections"
        target: loader.item
        onWidthChanged: loader.sourceComponent = item2
    }
}