aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistmodel/data/multipleroles.qml
blob: cd4f1aca406b26c7b968011b30586c35e68686eb (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 2.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
        }
    }
}