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
/
qdeclarativelistview
/
data
/
listview-enforcerange.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
width: 240
5
height: 320
6
color: "#ffffff"
7
Component {
8
id: myDelegate
9
Item {
10
id: wrapper
11
objectName: "wrapper"
12
height: 20
13
width: 240
14
Text {
15
text: index
16
}
17
Text {
18
x: 30
19
id: textName
20
objectName: "textName"
21
text: name
22
}
23
Text {
24
x: 120
25
id: textNumber
26
objectName: "textNumber"
27
text: number
28
}
29
Text {
30
x: 200
31
text: wrapper.y
32
}
33
}
34
}
35
36
Component {
37
id: myHighlight
38
Rectangle {
39
color: "lightsteelblue"
40
}
41
}
42
43
ListView {
44
id: list
45
objectName: "list"
46
width: 240
47
height: 320
48
model: testModel
49
delegate: myDelegate
50
highlight: myHighlight
51
preferredHighlightBegin: 100
52
preferredHighlightEnd: 100
53
highlightRangeMode: "StrictlyEnforceRange"
54
}
55
}