2 import Sailfish.Silica 1.0
6 property bool cycling: false
8 // The effective value will be restricted by ApplicationWindow.allowedOrientations
9 allowedOrientations: Orientation.All
11 // To enable PullDownMenu, place our content in a SilicaFlickable
15 // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
18 text: qsTr("Show Page 2")
19 onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml"))
23 // Tell SilicaFlickable the height of its content.
24 contentHeight: column.height
26 // Place our content in a Column. The PageHeader is always placed at the top
27 // of the page, followed by our content.
32 spacing: Theme.paddingLarge
42 anchors.horizontalCenter: parent.horizontalCenter
43 text: cycling ? qsTr("Finish") : qsTr("Start a journey")
46 var dialog = pageStack.push(Qt.resolvedUrl("AddJourney.qml"))
48 dialog.accepted.connect(function() {
59 text: qsTr("Add a journey")
63 anchors.horizontalCenter: parent.horizontalCenter
64 text: qsTr("Enter journey")
65 onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"))
69 text: qsTr("Latest stats")
73 anchors.horizontalCenter: parent.horizontalCenter
74 text: qsTr("View stats")
75 onClicked: pageStack.push(Qt.resolvedUrl("Stats.qml"))
79 text: qsTr("Previous journeys")
83 anchors.horizontalCenter: parent.horizontalCenter
84 text: qsTr("View journeys")
85 onClicked: pageStack.push(Qt.resolvedUrl("JourneyList.qml"))