summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveSummary.qml34
1 files changed, 17 insertions, 17 deletions
diff --git a/mobile-widgets/qml/DiveSummary.qml b/mobile-widgets/qml/DiveSummary.qml
index fe554bc0c..b690109e4 100644
--- a/mobile-widgets/qml/DiveSummary.qml
+++ b/mobile-widgets/qml/DiveSummary.qml
@@ -11,23 +11,6 @@ Kirigami.ScrollablePage {
background: Rectangle { color: subsurfaceTheme.backgroundColor }
title: qsTr("Dive summary")
- ListModel {
- id: monthModel
- ListElement {text: qsTr("Total")}
- ListElement {text: qsTr(" 1 month [ 30 days]")}
- ListElement {text: qsTr(" 2 month [ 60 days]")}
- ListElement {text: qsTr(" 3 month [ 90 days]")}
- ListElement {text: qsTr(" 4 month [120 days]")}
- ListElement {text: qsTr(" 5 month [150 days]")}
- ListElement {text: qsTr(" 6 month [180 days]")}
- ListElement {text: qsTr(" 7 month [210 days]")}
- ListElement {text: qsTr(" 8 month [240 days]")}
- ListElement {text: qsTr(" 9 month [270 days]")}
- ListElement {text: qsTr("10 month [300 days]")}
- ListElement {text: qsTr("11 month [330 days]")}
- ListElement {text: qsTr("12 month [360 days]")}
- }
-
onVisibleChanged: {
if (visible)
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
@@ -39,6 +22,23 @@ Kirigami.ScrollablePage {
columnSpacing: Kirigami.Units.smallSpacing
rowSpacing: Kirigami.Units.smallSpacing
+ ListModel {
+ id: monthModel
+ ListElement {text: qsTr("Total")}
+ ListElement {text: qsTr(" 1 month [ 30 days]")}
+ ListElement {text: qsTr(" 2 month [ 60 days]")}
+ ListElement {text: qsTr(" 3 month [ 90 days]")}
+ ListElement {text: qsTr(" 4 month [120 days]")}
+ ListElement {text: qsTr(" 5 month [150 days]")}
+ ListElement {text: qsTr(" 6 month [180 days]")}
+ ListElement {text: qsTr(" 7 month [210 days]")}
+ ListElement {text: qsTr(" 8 month [240 days]")}
+ ListElement {text: qsTr(" 9 month [270 days]")}
+ ListElement {text: qsTr("10 month [300 days]")}
+ ListElement {text: qsTr("11 month [330 days]")}
+ ListElement {text: qsTr("12 month [360 days]")}
+ }
+
TemplateLabel {
text: qsTr("oldest/newest dive")
font.bold: true