blob: db83d897befa615586e1763fd61aac8ce7b3be35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import QtQml
import QtQml.Models
QtObject {
id: root
property bool includeAll: false
property alias count: instantiator.count
readonly property DelegateModel mprop: DelegateModel {
id: dm
model: 10
delegate: QtObject {
required property int index
DelegateModel.inItems: index % 2 === 0 || root.includeAll
}
}
readonly property Instantiator instProp: Instantiator {
id: instantiator
model: dm
}
}
|