aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview2/data/qtbug86744.qml
blob: c69a4f7ec646c758773a974e1cb7111cde14b795 (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtQml.Models

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
    }
}