~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/quick/qquicklistview/data/qtbug14821.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}