~ubuntu-branches/ubuntu/saucy/qtdeclarative-opensource-src/saucy

« back to all changes in this revision

Viewing changes to tests/auto/quick/qquickpathview/data/vdm.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
PathView {
 
4
    id: pathView
 
5
    width: 240; height: 320
 
6
 
 
7
    pathItemCount: 4
 
8
    preferredHighlightBegin : 0.5
 
9
    preferredHighlightEnd : 0.5
 
10
 
 
11
    path: Path {
 
12
        startX: 120; startY: 20;
 
13
        PathLine { x: 120; y: 300 }
 
14
    }
 
15
 
 
16
    ListModel {
 
17
        id: mo
 
18
        ListElement { value: "one" }
 
19
        ListElement { value: "two" }
 
20
        ListElement { value: "three" }
 
21
    }
 
22
 
 
23
    model: VisualDataModel {
 
24
        delegate: Text { text: model.value }
 
25
        model : mo
 
26
    }
 
27
}
 
28