aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/qtbug86744.qml
blob: 6dc82d57eb78e4c7204f935834a523167ee24fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.15
import QtQml.Models 2.15

Item {
    height: 200
    width: 100
    DelegateModel {
        id: dm
        model: 2
        delegate: Item {
            width: 100; height: 20
            property bool isCurrent: ListView.isCurrentItem
        }
    }
    ListView {
        objectName: "listView"
        model: dm
        currentIndex: 1
        anchors.fill: parent
    }
}