blob: 8779a0bae81935b182719ac08b6983bc7fdd28a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import QtQuick 2.0
import QtQml.Models 2.12
DelegateModel {
function setRoot() {
rootIndex = modelIndex(0);
}
function setRootToParent() {
rootIndex = parentModelIndex();
}
model: myModel
delegate: Item { property bool modelChildren: hasModelChildren }
}
|