diff options
Diffstat (limited to 'tests/auto/quick/qquicklistview2/data/urlListModel.qml')
-rw-r--r-- | tests/auto/quick/qquicklistview2/data/urlListModel.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview2/data/urlListModel.qml b/tests/auto/quick/qquicklistview2/data/urlListModel.qml new file mode 100644 index 0000000000..38237234e0 --- /dev/null +++ b/tests/auto/quick/qquicklistview2/data/urlListModel.qml @@ -0,0 +1,22 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick + +Rectangle { + id: root + + property var model + property alias view: view + + ListView { + id: view + anchors.fill: parent + objectName: "view" + model: root.model + delegate: Text { + height: view.width + text: modelData + } + } +} |