diff options
Diffstat (limited to 'tests/auto/declarative/qquicklistview/data/qtbug-21742.qml')
-rw-r--r-- | tests/auto/declarative/qquicklistview/data/qtbug-21742.qml | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/auto/declarative/qquicklistview/data/qtbug-21742.qml b/tests/auto/declarative/qquicklistview/data/qtbug-21742.qml deleted file mode 100644 index 774f9041fb..0000000000 --- a/tests/auto/declarative/qquicklistview/data/qtbug-21742.qml +++ /dev/null @@ -1,36 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - height: 200 - width: 200 - property int count: menuView.count - - Component.onCompleted: { setModel(); } - - function setModel() - { - menuModel.append({"enabledItem" : true}); - menuView.currentIndex = 0; - } - - ListModel { - id: menuModel - } - - ListView { - id: menuView - anchors.fill: parent - model: menuModel - delegate: mything - } - - Component { - id: mything - Rectangle { - height: 50 - width: 200 - color: index == menuView.currentIndex ? "green" : "blue" - } - } - -}
\ No newline at end of file |