4 Currently selected element should be red
5 Pressing "9" should print the number of the currently selected item
6 Be sure to scroll all the way to the right, pause, and then all the way to the left
15 ListElement { name: "red" }
16 ListElement { name: "orange" }
17 ListElement { name: "yellow" }
18 ListElement { name: "green" }
19 ListElement { name: "cyan" }
20 ListElement { name: "blue" }
21 ListElement { name: "indigo" }
22 ListElement { name: "violet" }
23 ListElement { name: "pink" }
30 width: 50; height: 50;
31 Keys.onDigit9Pressed: console.log("Error - " + name)
34 Keys.onDigit9Pressed: console.log(name)
35 width: 50; height: 50;
36 color: root.ListView.isCurrentItem?"black":name
42 width: 800; height: 50; orientation: "Horizontal"
45 delegate: verticalDelegate
46 preferredHighlightBegin: 100
47 preferredHighlightEnd: 101
48 highlightRangeMode: ListView.StrictlyEnforceRange