projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
QML_RUNTIME_TESTING should be disabled by default.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
quick
/
qquicklistview
/
data
/
manual-highlight.qml
1
import QtQuick 2.0
2
3
Item {
4
5
ListModel {
6
id: model
7
ListElement {
8
name: "Bill Smith"
9
number: "555 3264"
10
}
11
ListElement {
12
name: "John Brown"
13
number: "555 8426"
14
}
15
ListElement {
16
name: "Sam Wise"
17
number: "555 0473"
18
}
19
ListElement {
20
name: "Bob Brown"
21
number: "555 5845"
22
}
23
}
24
25
Component {
26
id: highlight
27
Rectangle {
28
objectName: "highlight"
29
width: 180; height: 20
30
color: "lightsteelblue"; radius: 5
31
y: list.currentItem.y+5
32
}
33
}
34
35
ListView {
36
id: list
37
objectName: "list"
38
anchors.fill: parent
39
model: model
40
delegate: Text { objectName: "wrapper"; text: name }
41
42
highlight: highlight
43
highlightFollowsCurrentItem: false
44
focus: true
45
}
46
47
}