6dbadf4af3142c1fdbba62b8010fa75a8e43dc53
[harbour-pedalo.git] / qml / pages / SecondPage.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Page {
5     id: page
6
7     // The effective value will be restricted by ApplicationWindow.allowedOrientations
8     allowedOrientations: Orientation.All
9
10     SilicaListView {
11         id: listView
12         model: 20
13         anchors.fill: parent
14         header: PageHeader {
15             title: qsTr("Nested Page")
16         }
17         delegate: BackgroundItem {
18             id: delegate
19
20             Label {
21                 x: Theme.horizontalPageMargin
22                 text: qsTr("Item") + " " + index
23                 anchors.verticalCenter: parent.verticalCenter
24                 color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
25             }
26             onClicked: console.log("Clicked " + index)
27         }
28         VerticalScrollDecorator {}
29     }
30 }