projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativeconnection
/
data
/
connection-targetchange.qml
1
import QtQuick 1.0
2
3
Item {
4
Component {
5
id: item1
6
Item {
7
objectName: "item1"
8
}
9
}
10
Component {
11
id: item2
12
Item {
13
objectName: "item2"
14
}
15
}
16
Loader {
17
id: loader
18
sourceComponent: item1
19
}
20
Connections {
21
objectName: "connections"
22
target: loader.item
23
onWidthChanged: loader.sourceComponent = item2
24
}
25
}