aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/qtbug86744.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/qtbug86744.qml')
-rw-r--r--tests/auto/quick/qquicklistview/data/qtbug86744.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/qtbug86744.qml b/tests/auto/quick/qquicklistview/data/qtbug86744.qml
new file mode 100644
index 0000000000..6dc82d57eb
--- /dev/null
+++ b/tests/auto/quick/qquicklistview/data/qtbug86744.qml
@@ -0,0 +1,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
+ }
+}