projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b41e2ac0b2b496e8b7a1d94a4299c873f7ab1f7a
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativegridview
/
data
/
footer.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
function changeFooter() {
5
grid.footer = footer2
6
}
7
width: 240
8
height: 320
9
color: "#ffffff"
10
Component {
11
id: myDelegate
12
Rectangle {
13
id: wrapper
14
objectName: "wrapper"
15
width: 80
16
height: 60
17
border.color: "blue"
18
Text {
19
text: index
20
}
21
color: GridView.isCurrentItem ? "lightsteelblue" : "white"
22
}
23
}
24
GridView {
25
id: grid
26
objectName: "grid"
27
width: 240
28
height: 320
29
cellWidth: 80
30
cellHeight: 60
31
model: testModel
32
delegate: myDelegate
33
footer: Text { objectName: "footer"; text: "Footer"; height: 30 }
34
}
35
36
Component {
37
id: footer2
38
Text { objectName: "footer2"; text: "Footer 2"; height: 20 }
39
}
40
}