projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b47f22dc343c78ca4819db2a19183951699205fd
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qtquick2
/
qquickvisualdatamodel
/
data
/
itemsDestroyed_package.qml
1
import QtQuick 2.0
2
3
Item {
4
width: 100
5
height: 100
6
7
ListView {
8
anchors.fill: parent
9
10
model: visualModel.parts.list
11
}
12
VisualDataModel {
13
id: visualModel
14
15
model: myModel
16
delegate: Package {
17
Item {
18
Package.name: "list"
19
width: 100
20
height: 20
21
}
22
23
Item {
24
id: gridItem
25
Package.name: "grid"
26
width: 50
27
height: 50
28
}
29
Rectangle {
30
objectName: "delegate"
31
parent: gridItem
32
width: 20
33
height: 20
34
}
35
}
36
}
37
GridView {
38
anchors.fill: parent
39
40
model: visualModel.parts.grid
41
}
42
}