Display overall statistics
[harbour-pedalo.git] / qml / pages / MainPage.qml
index 03d86a2..5c0c16b 100644 (file)
@@ -11,16 +11,18 @@ Page {
     SilicaFlickable {
         anchors.fill: parent
 
+        VerticalScrollDecorator {}
+
         // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
         PullDownMenu {
             MenuItem {
-                text: qsTr("Show Page 2")
-                onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml"))
+                text: qsTr("About")
+                onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
             }
         }
 
         // Tell SilicaFlickable the height of its content.
-        contentHeight: column.height
+        contentHeight: column.implicitHeight + Theme.paddingLarge
 
         // Place our content in a Column.  The PageHeader is always placed at the top
         // of the page, followed by our content.
@@ -42,7 +44,7 @@ Page {
                 text: currentStatus.cycling ? qsTr("Finish") : qsTr("Start a journey")
                 onClicked: {
                     if (currentStatus.cycling) {
-                        var dialog = pageStack.push(Qt.resolvedUrl("AddJourney.qml"), {title: "Finish journey", start: journeymodel.epochToDateTime(currentStatus.startTime), duration: currentStatus.getDuration()})
+                        var dialog = pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"), {title: "Finish journey", start: journeymodel.epochToDateTime(currentStatus.startTime), duration: currentStatus.getDuration()})
 
                         dialog.accepted.connect(function() {
                             currentStatus.cycling = false
@@ -61,7 +63,7 @@ Page {
             Button {
                 anchors.horizontalCenter: parent.horizontalCenter
                 text: qsTr("Enter journey")
-                onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"))
+                onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"))
             }
 
             SectionHeader {