aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistmodel/data/qtbug38907.qml
blob: 0abf221f603c4c4cd0f27623f8f4d7722e5a67f3 (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
import QtTest 1.0

Item {

    Item {
        id : testItem
        property string name : "testObject"
        property var object : this
        function testMethod() {
            return -1;
        }
    }

    ListModel {
        id : listModel
        dynamicRoles : true
    }

    function exec() {
        listModel.append(testItem);
        listModel.append({ item : testItem });
        return true;
    }
}