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
/
qdeclarativelistmodel
/
data
/
multipleroles.qml
1
import QtQuick 1.0
2
ListView {
3
width: 100
4
height: 250
5
delegate: Rectangle {
6
width: 100
7
height: 50
8
color: black ? "black": "white"
9
}
10
model: ListModel {
11
objectName: "listModel"
12
ListElement {
13
black: false
14
rounded: false
15
}
16
ListElement {
17
black: true
18
rounded: false
19
}
20
ListElement {
21
black: true
22
rounded: false
23
}
24
}
25
}