Rename Qt Quick-specific classes to QQuick*
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qquicklistview / data / qtbug14821.qml
1 import QtQuick 2.0
2
3 ListView {
4     id: view
5     width: 300; height: 200
6     focus: true
7     keyNavigationWraps: true
8
9     model: 100
10
11     preferredHighlightBegin: 90
12     preferredHighlightEnd:   110
13
14     highlightRangeMode: ListView.StrictlyEnforceRange
15     highlight: Component {
16         Rectangle {
17             border.color: "blue"
18             border.width: 3
19             color: "transparent"
20             width: 300; height: 15
21         }
22     }
23
24     delegate: Component {
25            Item {
26                height: 15 + (view.currentIndex == index ? 20 : 0)
27                width: 200
28                Text { text: 'Index: ' + index; anchors.verticalCenter: parent.verticalCenter }
29            }
30        }
31 }