Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepathview / data / dragpath.qml
1 import QtQuick 1.0
2
3 PathView {
4     width: 400
5     height: 200
6     model: 100
7     pathItemCount: 20
8     path: Path {
9         startX: 0; startY: 100
10         PathLine { x: 400; y: 100 }
11     }
12     delegate: Rectangle { objectName: "wrapper"; height: 100; width: 2; color: PathView.isCurrentItem?"red" : "black" }
13     dragMargin: 100
14     preferredHighlightBegin: 0.5
15     preferredHighlightEnd: 0.5
16     Text {
17         text: "current index: " + parent.currentIndex
18     }
19 }