projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
19bbef500f4a80ba8ebced85139a089aeef2345a
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qtquick2
/
qquicklistview
/
data
/
margins.qml
1
import QtQuick 2.0
2
3
Rectangle {
4
id: root
5
width: 240
6
height: 320
7
color: "#ffffff"
8
9
Component {
10
id: myDelegate
11
Rectangle {
12
id: wrapper
13
objectName: "wrapper"
14
height: 20
15
width: 240
16
Text {
17
text: index
18
}
19
Text {
20
x: 30
21
id: textName
22
objectName: "textName"
23
text: name
24
}
25
Text {
26
x: 120
27
id: textNumber
28
objectName: "textNumber"
29
text: number
30
}
31
Text {
32
x: 200
33
text: wrapper.y
34
}
35
color: ListView.isCurrentItem ? "lightsteelblue" : "white"
36
}
37
}
38
ListView {
39
id: list
40
objectName: "list"
41
anchors.fill: parent
42
topMargin: 30
43
bottomMargin: 50
44
model: testModel
45
delegate: myDelegate
46
}
47
}