aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickvisualdatamodel/data/visualdatamodel.qml
blob: e3ae1d1772346989f0f70837993ddaa15f8f0da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQuick 2.0

VisualDataModel {
    function setRoot() {
        rootIndex = modelIndex(0);
    }
    function setRootToParent() {
        rootIndex = parentModelIndex();
    }
    model: myModel
    delegate: Item { property bool modelChildren: hasModelChildren }
}