aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelistmodel/data/multipleroles.qml
blob: cc6d9de8a0b900a5c1eb80537204f2b75dbf6dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick 1.0
ListView {
    width: 100
    height: 250
    delegate: Rectangle { 
        width: 100
        height: 50
        color: black ? "black": "white" 
    }
    model: ListModel { 
        objectName: "listModel"
        ListElement {
            black: false
            rounded: false
        }
        ListElement {
            black: true
            rounded: false
        }
        ListElement {
            black: true
            rounded: false
        }
    }
}