projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rewrite the canvas item's paint logic.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativelistview
/
data
/
header1.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
width: 240
5
height: 320
6
color: "#ffffff"
7
8
ListModel { id: testModel }
9
10
ListView {
11
id: list
12
objectName: "list"
13
width: parent.width
14
anchors.top: parent.top
15
anchors.bottom: parent.bottom
16
model: testModel
17
delegate: Text {
18
objectName: "wrapper"
19
font.pointSize: 20
20
text: index
21
}
22
footer: Rectangle {
23
width: parent.width
24
height: 40
25
color: "green"
26
}
27
header: Text { objectName: "header"; text: "Header" }
28
}
29
30
Component.onCompleted: {
31
for (var i=0; i<30; i++) testModel.append({"name" : i, "val": i})
32
}
33
}