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
/
qmlvisual
/
ListView
/
basic2.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
color: "blue"
5
width: 200
6
height: 300
7
id: page
8
Component {
9
id: delegate
10
Rectangle {
11
color: "red"
12
width: 100
13
height: 100
14
Rectangle {
15
anchors.centerIn: parent
16
width: 60
17
height: 60
18
color: name
19
}
20
}
21
}
22
ListView {
23
anchors.fill: parent
24
delegate: delegate
25
model: ListModel {
26
ListElement {
27
name: "palegoldenrod"
28
}
29
ListElement {
30
name: "lightsteelblue"
31
}
32
}
33
}
34
}