summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativevisualdatamodel/data/visualdatamodel.qml
blob: a5c44d01516ab543388a1088bac42d22e25e87a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
import QtQuick 1.0

VisualDataModel {
    function setRoot() {
        rootIndex = modelIndex(0);
    }
    function setRootToParent() {
        rootIndex = parentModelIndex();
    }
    model: myModel
}